mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
change Target.getInstructionsByEnumValue to return a reference
to a vector that CGT stores instead of synthesizing it on every call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -108,8 +108,8 @@ void DisassemblerEmitter::run(raw_ostream &OS) {
|
||||
if (Target.getName() == "X86") {
|
||||
DisassemblerTables Tables;
|
||||
|
||||
std::vector<const CodeGenInstruction*> numberedInstructions;
|
||||
Target.getInstructionsByEnumValue(numberedInstructions);
|
||||
const std::vector<const CodeGenInstruction*> &numberedInstructions =
|
||||
Target.getInstructionsByEnumValue();
|
||||
|
||||
for (unsigned i = 0, e = numberedInstructions.size(); i != e; ++i)
|
||||
RecognizableInstr::processInstr(Tables, *numberedInstructions[i], i);
|
||||
|
||||
Reference in New Issue
Block a user