diff options
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(); |