summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-03-13 06:39:00 +0000
committerCraig Topper <craig.topper@gmail.com>2012-03-13 06:39:00 +0000
commitba6d8107527ff0f59180bae828efc631c8619d84 (patch)
treec8f2692f24aa9a975ac856717be5646dcd043291 /llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
parent84208dcf027788c0e106776b46882be073978ead (diff)
downloadbcm5719-llvm-ba6d8107527ff0f59180bae828efc631c8619d84.tar.gz
bcm5719-llvm-ba6d8107527ff0f59180bae828efc631c8619d84.zip
Remove unused field from FixedLenDecoderEmitter. Move NumberedInstructions declaration from class to run method since its only used there and was being reinitialized anyway.
llvm-svn: 152616
Diffstat (limited to 'llvm/utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FixedLenDecoderEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index 19e86db41a7..524d7566b5e 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -1527,7 +1527,8 @@ void FixedLenDecoderEmitter::run(raw_ostream &o)
o << "namespace llvm {\n\n";
// Parameterize the decoders based on namespace and instruction width.
- NumberedInstructions = Target.getInstructionsByEnumValue();
+ std::vector<const CodeGenInstruction*> NumberedInstructions =
+ Target.getInstructionsByEnumValue();
std::map<std::pair<std::string, unsigned>,
std::vector<unsigned> > OpcMap;
std::map<unsigned, std::vector<OperandInfo> > Operands;
OpenPOWER on IntegriCloud