mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 02:22:31 +00:00
Disable the right instance of TheJIT, this one is only used in asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a978366339
commit
e04690e092
@ -108,13 +108,18 @@ namespace {
|
|||||||
/// particular GlobalVariable so that we can reuse them if necessary.
|
/// particular GlobalVariable so that we can reuse them if necessary.
|
||||||
GlobalToIndirectSymMapTy GlobalToIndirectSymMap;
|
GlobalToIndirectSymMapTy GlobalToIndirectSymMap;
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
/// Instance of the JIT this ResolverState serves.
|
/// Instance of the JIT this ResolverState serves.
|
||||||
JIT *TheJIT;
|
JIT *TheJIT;
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
JITResolverState(JIT *jit) : FunctionToLazyStubMap(this),
|
JITResolverState(JIT *jit) : FunctionToLazyStubMap(this),
|
||||||
FunctionToCallSitesMap(this),
|
FunctionToCallSitesMap(this) {
|
||||||
TheJIT(jit) {}
|
#ifndef NDEBUG
|
||||||
|
TheJIT = jit;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
FunctionToLazyStubMapTy& getFunctionToLazyStubMap(
|
FunctionToLazyStubMapTy& getFunctionToLazyStubMap(
|
||||||
const MutexGuard& locked) {
|
const MutexGuard& locked) {
|
||||||
@ -186,17 +191,12 @@ namespace {
|
|||||||
|
|
||||||
JITEmitter &JE;
|
JITEmitter &JE;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
/// Instance of JIT corresponding to this Resolver.
|
/// Instance of JIT corresponding to this Resolver.
|
||||||
JIT *TheJIT;
|
JIT *TheJIT;
|
||||||
#endif
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit JITResolver(JIT &jit, JITEmitter &je)
|
explicit JITResolver(JIT &jit, JITEmitter &je)
|
||||||
: state(&jit), nextGOTIndex(0), JE(je) {
|
: state(&jit), nextGOTIndex(0), JE(je), TheJIT(&jit) {
|
||||||
#ifndef NDEBUG
|
|
||||||
TheJIT = &jit;
|
|
||||||
#endif
|
|
||||||
LazyResolverFn = jit.getJITInfo().getLazyResolverFunction(JITCompilerFn);
|
LazyResolverFn = jit.getJITInfo().getLazyResolverFunction(JITCompilerFn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user