summaryrefslogtreecommitdiff
path: root/utils/TableGen/AsmWriterEmitter.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-02-09 23:06:35 +0000
committerSean Callanan <scallanan@apple.com>2010-02-09 23:06:35 +0000
commitd0bc7f060ece77c670794ef60f7052e2ff1847c9 (patch)
tree630c80a04e8d14af42dc0b97ac407fec07aff3df /utils/TableGen/AsmWriterEmitter.cpp
parent4814e711ab64cab1d241a97476a905f1d8136877 (diff)
downloadllvm-d0bc7f060ece77c670794ef60f7052e2ff1847c9.tar.gz
llvm-d0bc7f060ece77c670794ef60f7052e2ff1847c9.tar.bz2
llvm-d0bc7f060ece77c670794ef60f7052e2ff1847c9.tar.xz
Fixed some indentation in the AsmWriterInst
implementation. Also changed the constructor so that it does not require a Record, making it usable by the EDEmitter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/AsmWriterEmitter.cpp')
-rw-r--r--utils/TableGen/AsmWriterEmitter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index 07666b0f69..143a2f700f 100644
--- a/utils/TableGen/AsmWriterEmitter.cpp
+++ b/utils/TableGen/AsmWriterEmitter.cpp
@@ -256,7 +256,11 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
E = Target.inst_end(); I != E; ++I)
if (!I->second.AsmString.empty() &&
I->second.TheDef->getName() != "PHI")
- Instructions.push_back(AsmWriterInst(I->second, AsmWriter));
+ Instructions.push_back(
+ AsmWriterInst(I->second,
+ AsmWriter->getValueAsInt("Variant"),
+ AsmWriter->getValueAsInt("FirstOperandColumn"),
+ AsmWriter->getValueAsInt("OperandSpacing")));
// Get the instruction numbering.
Target.getInstructionsByEnumValue(NumberedInstructions);