summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-12-09 07:31:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-12-09 07:31:49 +0000
commit75900bf5cd5d0fee95c6546a919307aebe12b14f (patch)
tree50de15b48737fbd803ff3004ddf0122143170a04 /llvm/lib/ExecutionEngine
parent8a5366332f90c63798373899dfd7d93d202dbc7d (diff)
downloadbcm5719-llvm-75900bf5cd5d0fee95c6546a919307aebe12b14f.tar.gz
bcm5719-llvm-75900bf5cd5d0fee95c6546a919307aebe12b14f.zip
DisableGVCompilation should not abort on internal GlobalValue's.
llvm-svn: 60750
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 41b3ebcc6db..5d5ecc4fe77 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -553,8 +553,8 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) {
addGlobalMapping(GV, Ptr);
}
} else {
- if (isGVCompilationDisabled()) {
- cerr << "Compilation of GlobalVariable is disabled!\n";
+ if (isGVCompilationDisabled() && !GV->hasInternalLinkage()) {
+ cerr << "Compilation of non-internal GlobalValue is disabled!\n";
abort();
}
// If the global hasn't been emitted to memory yet, allocate space and
OpenPOWER on IntegriCloud