diff options
| author | 2012-04-13 12:36:57 -0700 | |
|---|---|---|
| committer | 2012-04-15 03:09:41 -0700 | |
| commit | d668a06b5dcc3b0f7f788da4d756cd4ee6f1d0fa (patch) | |
| tree | 7795e95e138821e57b738cd452850a5d52bb4899 /src/compiler_llvm/compiler_llvm.cc | |
| parent | 0dae08ead9112adb81ad507b81187f00f77bc168 (diff) | |
Implement runtime support inlining.
Change-Id: I8608b246a4dfde9959b5b86872f65dfa61646c84
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index f9af139d52..baa6b2feeb 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -42,6 +42,8 @@ namespace llvm { extern bool TimePassesIsEnabled; } +extern llvm::cl::opt<bool> ReserveR9; +// ReserveR9 is defined in llvm/lib/Target/ARM/ARMSubtarget.cpp extern llvm::cl::opt<bool> EnableARMLongCalls; // NOTE: Although EnableARMLongCalls is defined in llvm/lib/Target/ARM/ // ARMISelLowering.cpp, however, it is not in the llvm namespace. @@ -55,6 +57,9 @@ void InitializeLLVM() { // NOTE: Uncomment following line to show the time consumption of LLVM passes //llvm::TimePassesIsEnabled = true; + // Enable -arm-reserve-r9 + ReserveR9 = true; + // Initialize LLVM target, MC subsystem, asm printer, and asm parser llvm::InitializeAllTargets(); llvm::InitializeAllTargetMCs(); |