mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Eliminate the instruction placeholder. Simplify a bunch of code.
This results in no significant speedup, but does provide simpler code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -134,7 +134,7 @@ Value *BytecodeParser::getValue(unsigned type, unsigned oNum, bool Create) {
|
||||
if (I != ForwardReferences.end() && I->first == KeyValue)
|
||||
return I->second; // We have already created this placeholder
|
||||
|
||||
Value *Val = new ValPHolder(getType(type), oNum);
|
||||
Value *Val = new Argument(getType(type));
|
||||
ForwardReferences.insert(I, std::make_pair(KeyValue, Val));
|
||||
return Val;
|
||||
}
|
||||
|
Reference in New Issue
Block a user