diff options
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index c94e7ea36d..b2a6d28315 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -27,6 +27,7 @@ #include <llvm/LinkAllPasses.h> #include <llvm/LinkAllVMCore.h> +#include <llvm/Support/CommandLine.h> #include <llvm/Support/ManagedStatic.h> #include <llvm/Support/TargetSelect.h> #include <llvm/Support/Threading.h> @@ -35,6 +36,10 @@ namespace llvm { extern bool TimePassesIsEnabled; } +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. + namespace { @@ -51,6 +56,9 @@ void InitializeLLVM() { llvm::InitializeAllAsmParsers(); // TODO: Maybe we don't have to initialize "all" targets. + // Enable -arm-long-calls + EnableARMLongCalls = true; + // Initialize LLVM optimization passes llvm::PassRegistry ®istry = *llvm::PassRegistry::getPassRegistry(); |