Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Dec 10, 2017
1 parent f4b1f76 commit 26a0515
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 26 deletions.
34 changes: 11 additions & 23 deletions src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/librustc/util/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ fn time_threads_impl<T, F>(what: &str, f: F) -> T where
let mut high: u32;

unsafe {
asm!("xor %%rax, %%rax; cpuid; rdtsc"
: "={eax}" (low), "={edx}" (high) :: "memory,rbx,rcx");
asm!("xor %rax, %rax; cpuid; rdtsc"
: "={eax}" (low), "={edx}" (high) :: "memory", "rbx", "rcx");
}

((high as u64) << 32) | (low as u64)
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_driver/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
let err_count = ecx.parse_sess.span_diagnostic.err_count();

let krate = time(time_passes, "expand crate", || {
ecx.monotonic_expander().expand_crate(krate);
ecx.monotonic_expander().expand_crate(krate)
});

time(time_passes, "check unused macros", || {
Expand Down

0 comments on commit 26a0515

Please sign in to comment.