aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitc007ba86f31ebe3a1c4cdba5fa23260caaf81e0f (patch)
tree13bb8debeca56a3b124320c911679828a32bae4c /utils/TableGen/FixedLenDecoderEmitter.cpp
parent7d6fc212c2c9c363ed3166966b1db14710325c5c (diff)
downloadexternal_llvm-c007ba86f31ebe3a1c4cdba5fa23260caaf81e0f.zip
external_llvm-c007ba86f31ebe3a1c4cdba5fa23260caaf81e0f.tar.gz
external_llvm-c007ba86f31ebe3a1c4cdba5fa23260caaf81e0f.tar.bz2
Remove unused field from FixedLenDecoderEmitter. Move NumberedInstructions declaration from class to run method since its only used there and was being reinitialized anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r--utils/TableGen/FixedLenDecoderEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp
index 19e86db..524d756 100644
--- a/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/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;