diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-10-10 20:15:49 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-10-10 20:15:49 +0000 |
commit | 819a2abc72e9e27d105ebc085aac09c6029db4a6 (patch) | |
tree | 3531b3bea82ca5c29f0fef34aedd5bd99dc520ed /utils | |
parent | 8cc4769108272d309038a657e42b7fcbc5bd94f3 (diff) | |
download | llvm-819a2abc72e9e27d105ebc085aac09c6029db4a6.tar.gz llvm-819a2abc72e9e27d105ebc085aac09c6029db4a6.tar.bz2 llvm-819a2abc72e9e27d105ebc085aac09c6029db4a6.tar.xz |
Emit full ED initializers even for pseudo-instructions.
This should unbreak the picky buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/EDEmitter.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/utils/TableGen/EDEmitter.cpp b/utils/TableGen/EDEmitter.cpp index 6c048dae48..a38f0066d9 100644 --- a/utils/TableGen/EDEmitter.cpp +++ b/utils/TableGen/EDEmitter.cpp @@ -805,11 +805,6 @@ static void populateInstInfo(CompoundConstantEmitter &infoArray, CompoundConstantEmitter *infoStruct = new CompoundConstantEmitter; infoArray.addEntry(infoStruct); - // We don't need to do anything for pseudo-instructions, as we'll never - // see them here. We'll only see real instructions. - if (inst.isPseudo) - continue; - LiteralConstantEmitter *instType = new LiteralConstantEmitter; infoStruct->addEntry(instType); @@ -839,15 +834,20 @@ static void populateInstInfo(CompoundConstantEmitter &infoArray, unsigned numSyntaxes = 0; - if (target.getName() == "X86") { - X86PopulateOperands(operandTypes, inst); - X86ExtractSemantics(*instType, operandFlags, inst); - numSyntaxes = 2; - } - else if (target.getName() == "ARM") { - ARMPopulateOperands(operandTypes, inst); - ARMExtractSemantics(*instType, operandTypes, operandFlags, inst); - numSyntaxes = 1; + // We don't need to do anything for pseudo-instructions, as we'll never + // see them here. We'll only see real instructions. + // We still need to emit null initializers for everything. + if (!inst.isPseudo) { + if (target.getName() == "X86") { + X86PopulateOperands(operandTypes, inst); + X86ExtractSemantics(*instType, operandFlags, inst); + numSyntaxes = 2; + } + else if (target.getName() == "ARM") { + ARMPopulateOperands(operandTypes, inst); + ARMExtractSemantics(*instType, operandTypes, operandFlags, inst); + numSyntaxes = 1; + } } CompoundConstantEmitter *operandOrderArray = new CompoundConstantEmitter; |