Skip to content

Commit ace2a3f

Browse files
committed
Checked 128bit subtraction.
1 parent 0b45a56 commit ace2a3f

File tree

7 files changed

+242
-59
lines changed

7 files changed

+242
-59
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build]
2-
target = "wasm64-unknown-unknown"
2+
target = "x86_64-unknown-linux-gnu"
33
[unstable]
44
build-std = ["core","panic_abort"]
55

src/assembly.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::rustc_middle::dep_graph::DepContext;
12
use crate::{
23
access_modifier::AccessModifer,
34
cil::{CILOp, CallSite},
@@ -10,7 +11,6 @@ use crate::{
1011
r#type::TypeDef,
1112
IString,
1213
};
13-
use crate::rustc_middle::dep_graph::DepContext;
1414
use rustc_middle::mir::{
1515
interpret::{AllocId, GlobalAlloc},
1616
mono::MonoItem,
@@ -234,7 +234,6 @@ impl Assembly {
234234
name: &str,
235235
cache: &mut TyCache,
236236
) -> Result<(), MethodCodegenError> {
237-
238237
if crate::utilis::is_function_magic(name) {
239238
return Ok(());
240239
}
@@ -471,7 +470,10 @@ impl Assembly {
471470
MonoItem::Fn(instance) => {
472471
//let instance = crate::utilis::monomorphize(&instance,tcx);
473472
let symbol_name = crate::utilis::function_name(item.symbol_name(tcx));
474-
let function_compile_timer = tcx.profiler().generic_activity_with_arg("compile function",item.symbol_name(tcx).to_string());
473+
let function_compile_timer = tcx.profiler().generic_activity_with_arg(
474+
"compile function",
475+
item.symbol_name(tcx).to_string(),
476+
);
475477
self.checked_add_fn(instance, tcx, &symbol_name, cache)
476478
.expect("Could not add function!");
477479
drop(function_compile_timer);
@@ -482,7 +484,10 @@ impl Assembly {
482484
Ok(())
483485
}
484486
MonoItem::Static(stotic) => {
485-
let static_compile_timer = tcx.profiler().generic_activity_with_arg("compile static initializer",item.symbol_name(tcx).to_string());
487+
let static_compile_timer = tcx.profiler().generic_activity_with_arg(
488+
"compile static initializer",
489+
item.symbol_name(tcx).to_string(),
490+
);
486491
let alloc = tcx.eval_static_initializer(stotic).unwrap();
487492
let alloc_id = tcx.reserve_and_set_memory_alloc(alloc);
488493
self.add_allocation(crate::utilis::alloc_id_to_u64(alloc_id), tcx);

src/bin/rustflags.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
fn main(){
1+
fn main() {
22
let build_env = rustc_codegen_clr::compile_test::cargo_build_env();
33
println!("In order to compile cargo crates with `rustc_codegen_clr`, please set the RUSTFLAGS enviorment variable to:");
44
println!();
@@ -24,4 +24,4 @@ fn main(){
2424
println!("1. Update BOTH rustc and the project on a regular basis.");
2525
println!("2. Report compiler bugs to the maintainers of `rustc_codegen_clr` not the maintainers of the compiler as a whole.");
2626
println!(" In 99.999% of the cases, the bug is wihin this project and not the compiler.");
27-
}
27+
}

0 commit comments

Comments
 (0)