summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-13 00:23:57 +0000
committerChris Lattner <sabre@nondot.org>2010-12-13 00:23:57 +0000
commit77d369c8ebaf22dae63d8ad122897e70bb55c440 (patch)
treecaa8e205e8f0938700143353ce80960e85a35df2 /llvm/utils/TableGen/CodeEmitterGen.cpp
parent9704907aacc18d6b2ccee7af2a01bd4f64b1af71 (diff)
downloadbcm5719-llvm-77d369c8ebaf22dae63d8ad122897e70bb55c440.tar.gz
bcm5719-llvm-77d369c8ebaf22dae63d8ad122897e70bb55c440.zip
eliminate the Records global variable, patch by Garrison Venn!
llvm-svn: 121659
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp
index 9dbb8ee8c53..6ee63b8f950 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ b/llvm/utils/TableGen/CodeEmitterGen.cpp
@@ -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
OpenPOWER on IntegriCloud