mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 23:25:06 +00:00
Pass a vector around to reduce dynamic allocation
Throw the RawInst class in an anon namespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -200,7 +200,8 @@ BasicBlock *BytecodeParser::ParseBasicBlock(const unsigned char *&Buf,
|
||||
BB = ParsedBasicBlocks[BlockNo];
|
||||
|
||||
while (Buf < EndBuf) {
|
||||
Instruction *Inst = ParseInstruction(Buf, EndBuf);
|
||||
std::vector<unsigned> Args;
|
||||
Instruction *Inst = ParseInstruction(Buf, EndBuf, Args);
|
||||
insertValue(Inst, Values);
|
||||
BB->getInstList().push_back(Inst);
|
||||
BCR_TRACE(4, Inst);
|
||||
|
Reference in New Issue
Block a user