summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrEnumEmitter.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
commit67db883487fca3472fdde51e931657e22d4d0495 (patch)
tree18ad5bbf8c061c1ed7c732a4af1f864fe7206700 /utils/TableGen/InstrEnumEmitter.cpp
parent9d6250f52ba4ba0a34d44aa2cc9d3fa14c15a006 (diff)
downloadllvm-67db883487fca3472fdde51e931657e22d4d0495.tar.gz
llvm-67db883487fca3472fdde51e931657e22d4d0495.tar.bz2
llvm-67db883487fca3472fdde51e931657e22d4d0495.tar.xz
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
Diffstat (limited to 'utils/TableGen/InstrEnumEmitter.cpp')
-rw-r--r--utils/TableGen/InstrEnumEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/InstrEnumEmitter.cpp b/utils/TableGen/InstrEnumEmitter.cpp
index 47a8474c35..aa596892f5 100644
--- a/utils/TableGen/InstrEnumEmitter.cpp
+++ b/utils/TableGen/InstrEnumEmitter.cpp
@@ -23,7 +23,7 @@ void InstrEnumEmitter::run(raw_ostream &OS) {
EmitSourceFileHeader("Target Instruction Enum Values", OS);
OS << "namespace llvm {\n\n";
- CodeGenTarget Target;
+ CodeGenTarget Target(Records);
// We must emit the PHI opcode first...
std::string Namespace = Target.getInstNamespace();