aboutsummaryrefslogtreecommitdiff
path: root/src/comp/lib/llvm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/lib/llvm.rs')
-rw-r--r--src/comp/lib/llvm.rs6
1 files changed, 6 insertions, 0 deletions
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;