From d6f1fcff6b056f1f0eb54989bbd2a68bf255ff22 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 10 May 2011 16:10:08 -0700 Subject: Add --time-llvm-passes. --- src/comp/lib/llvm.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/comp/lib') diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index c4114261..bc7338ff 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -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; -- cgit v1.2.3