aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/locals.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-09-04 07:50:13 +0000
committerGravatar GitHub <noreply@github.com> 2020-09-04 07:50:13 +0000
commit7506bd8ae0ba335fc058c2138438fab5f20f6dab (patch)
treefe65b335b19171370bd6be0bd5cd6b776a1d6110 /macros/src/codegen/locals.rs
parentc5e6d1fa49e3596227a8ee8fe89e2e4f66db3169 (diff)
parentad2b80907899cc335edcebfc77ae4b4b51272b87 (diff)
downloadrtic-7506bd8ae0ba335fc058c2138438fab5f20f6dab.tar.gz
rtic-7506bd8ae0ba335fc058c2138438fab5f20f6dab.tar.zst
rtic-7506bd8ae0ba335fc058c2138438fab5f20f6dab.zip
Merge #355
355: Multi-core removal r=korken89 a=AfoHT Dependent on https://github.com/rtic-rs/rtic-syntax/pull/27 With the same reasoning as ^^ For now the testing is done against my rtic-syntax/multiremove-branch, but before we merge it should corrected. Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'macros/src/codegen/locals.rs')
-rw-r--r--macros/src/codegen/locals.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/macros/src/codegen/locals.rs b/macros/src/codegen/locals.rs
index 127f4b09..336c0b21 100644
--- a/macros/src/codegen/locals.rs
+++ b/macros/src/codegen/locals.rs
@@ -2,7 +2,7 @@ use proc_macro2::TokenStream as TokenStream2;
use quote::quote;
use rtic_syntax::{
ast::{App, Local},
- Context, Core, Map,
+ Context, Map,
};
use crate::codegen::util;
@@ -10,7 +10,6 @@ use crate::codegen::util;
pub fn codegen(
ctxt: Context,
locals: &Map<Local>,
- core: Core,
app: &App,
) -> (
// locals
@@ -42,11 +41,6 @@ pub fn codegen(
let cfgs = &local.cfgs;
has_cfgs |= !cfgs.is_empty();
- let section = if local.shared && cfg!(feature = "heterogeneous") {
- Some(quote!(#[rtic::export::shared]))
- } else {
- util::link_section("data", core)
- };
let expr = &local.expr;
let ty = &local.ty;
fields.push(quote!(
@@ -55,7 +49,6 @@ pub fn codegen(
));
items.push(quote!(
#(#cfgs)*
- #section
static mut #name: #ty = #expr
));
values.push(quote!(