diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-06-16 21:48:13 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-06-16 21:48:13 +0000 |
commit | a9783663398baf1289683fc7326430b89963f38e (patch) | |
tree | 847760784435c4f8454fc1eba32b76dbcaffe398 /lib/ExecutionEngine | |
parent | 2741d2cfdff89e45c6b98cd520d5cd3fe97829ad (diff) | |
download | external_llvm-a9783663398baf1289683fc7326430b89963f38e.zip external_llvm-a9783663398baf1289683fc7326430b89963f38e.tar.gz external_llvm-a9783663398baf1289683fc7326430b89963f38e.tar.bz2 |
Guard private fields that are unused in Release builds with #ifndef NDEBUG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 504c8bd..5427eec 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -186,12 +186,17 @@ 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), TheJIT(&jit) { + : state(&jit), nextGOTIndex(0), JE(je) { +#ifndef NDEBUG + TheJIT = &jit; +#endif LazyResolverFn = jit.getJITInfo().getLazyResolverFunction(JITCompilerFn); } |