summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compiler_llvm.cc
diff options
context:
space:
mode:
author Shih-wei Liao <sliao@google.com> 2012-04-17 16:42:19 -0700
committer Shih-wei Liao <sliao@google.com> 2012-04-17 16:42:19 -0700
commit1776572d3c47d8de66e211144a52cbc129a81d69 (patch)
tree79078b521d56019ec281c906aa0db79d3cfbaca0 /src/compiler_llvm/compiler_llvm.cc
parent83bb6624fe370e7f8922471598adcd1f936e4b1a (diff)
Fix stack overflow errors.
Change-Id: Ibc4e1fc4ec6b9c44e8b7a07316b54092f5cc4aea
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
-rw-r--r--src/compiler_llvm/compiler_llvm.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc
index c89000357f..443950df07 100644
--- a/src/compiler_llvm/compiler_llvm.cc
+++ b/src/compiler_llvm/compiler_llvm.cc
@@ -42,11 +42,12 @@ 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.
+extern llvm::cl::opt<bool> EnableARMLongCalls;
+
+// ReserveR9 is defined in llvm/lib/Target/ARM/ARMSubtarget.cpp
+extern llvm::cl::opt<bool> ReserveR9;
namespace {
@@ -68,7 +69,7 @@ void InitializeLLVM() {
// TODO: Maybe we don't have to initialize "all" targets.
// Enable -arm-long-calls
- EnableARMLongCalls = true;
+ EnableARMLongCalls = false;
// Initialize LLVM optimization passes
llvm::PassRegistry &registry = *llvm::PassRegistry::getPassRegistry();