mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
[Orc] Try another workaround for the GCC 4.7.2 ICE introduced in r228557. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228568 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9759a273fd
commit
7e44cee3e6
@ -45,12 +45,12 @@ private:
|
||||
if (provides(Name, ExportedSymbolsOnly))
|
||||
return JITSymbol(
|
||||
[=,&B]() -> TargetAddress {
|
||||
if (EmitState == Emitting)
|
||||
if (this->EmitState == Emitting)
|
||||
return 0;
|
||||
else if (EmitState != Emitted) {
|
||||
EmitState = Emitting;
|
||||
Handle = emit(B);
|
||||
EmitState = Emitted;
|
||||
else if (this->EmitState != Emitted) {
|
||||
this->EmitState = Emitting;
|
||||
Handle = this->emit(B);
|
||||
this->EmitState = Emitted;
|
||||
}
|
||||
return B.findSymbolIn(Handle, Name, ExportedSymbolsOnly)
|
||||
.getAddress();
|
||||
|
@ -224,8 +224,8 @@ public:
|
||||
[=](){
|
||||
if (H->NeedsFinalization()) {
|
||||
H->Finalize();
|
||||
if (NotifyFinalized)
|
||||
NotifyFinalized(H);
|
||||
if (this->NotifyFinalized)
|
||||
this->NotifyFinalized(H);
|
||||
}
|
||||
return Addr;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user