eliminate the Records global variable, patch by Garrison Venn!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-12-13 00:23:57 +00:00
parent 9d6250f52b
commit 67db883487
21 changed files with 104 additions and 59 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ std::string CodeEmitterGen::getInstructionCase(Record *R,
}
void CodeEmitterGen::run(raw_ostream &o) {
CodeGenTarget Target;
CodeGenTarget Target(Records);
std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction");
// For little-endian instruction bit encodings, reverse the bit order