summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-06-16 21:55:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-06-16 21:55:52 +0000
commitd0b767f849ded7197bb9fa7b9a4e23f51e43b005 (patch)
tree9abfec0038c71c503368778337fa26d6d6926b30 /llvm/lib/ExecutionEngine
parentcc7c710fb003da5ec02c2cf8dce653e7618f9b51 (diff)
downloadbcm5719-llvm-d0b767f849ded7197bb9fa7b9a4e23f51e43b005.tar.gz
bcm5719-llvm-d0b767f849ded7197bb9fa7b9a4e23f51e43b005.zip
Disable the right instance of TheJIT, this one is only used in asserts.
llvm-svn: 158610
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 5427eec4dff..0d108848b23 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -108,13 +108,18 @@ namespace {
/// particular GlobalVariable so that we can reuse them if necessary.
GlobalToIndirectSymMapTy GlobalToIndirectSymMap;
+#ifndef NDEBUG
/// Instance of the JIT this ResolverState serves.
JIT *TheJIT;
+#endif
public:
JITResolverState(JIT *jit) : FunctionToLazyStubMap(this),
- FunctionToCallSitesMap(this),
- TheJIT(jit) {}
+ FunctionToCallSitesMap(this) {
+#ifndef NDEBUG
+ TheJIT = jit;
+#endif
+ }
FunctionToLazyStubMapTy& getFunctionToLazyStubMap(
const MutexGuard& locked) {
@@ -186,17 +191,12 @@ namespace {
JITEmitter &JE;
-#ifndef NDEBUG
/// Instance of JIT corresponding to this Resolver.
JIT *TheJIT;
-#endif
public:
explicit JITResolver(JIT &jit, JITEmitter &je)
- : state(&jit), nextGOTIndex(0), JE(je) {
-#ifndef NDEBUG
- TheJIT = &jit;
-#endif
+ : state(&jit), nextGOTIndex(0), JE(je), TheJIT(&jit) {
LazyResolverFn = jit.getJITInfo().getLazyResolverFunction(JITCompilerFn);
}
OpenPOWER on IntegriCloud