1
Fork 0

Add --time-llvm-passes.

This commit is contained in:
Graydon Hoare 2011-05-10 16:10:08 -07:00
parent 813636d52e
commit d6f1fcff6b
6 changed files with 40 additions and 4 deletions

View file

@ -872,6 +872,12 @@ native mod llvm = llvm_lib {
fn LLVMRustConstSmallInt(TypeRef IntTy, uint N,
Bool SignExtend) -> ValueRef;
/** Turn on LLVM pass-timing. */
fn LLVMRustEnableTimePasses();
/** Print the pass timings since static dtors aren't picking them up. */
fn LLVMRustPrintPassTimings();
/** Links LLVM modules together. `Src` is destroyed by this call and
must never be referenced again. */
fn LLVMLinkModules(ModuleRef Dest, ModuleRef Src) -> Bool;