aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/AsmWriterInst.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-02-10 02:27:43 +0000
committerSean Callanan <scallanan@apple.com>2010-02-10 02:27:43 +0000
commit397170b0ab0b445a268bd9bc1260761bb4a78ca2 (patch)
treeba2d91340b26ecb69739b1ecef6b1f320962eaa6 /utils/TableGen/AsmWriterInst.cpp
parent046632f272b22a653c204c0ef56eb4076368d4bb (diff)
Changed AsmWriterOperand to also include the index of the
operand into the CodeGenInstruction's list of operands, which is useful for EDEmitter. (Still working on PR6219) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/AsmWriterInst.cpp')
-rw-r--r--utils/TableGen/AsmWriterInst.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/TableGen/AsmWriterInst.cpp b/utils/TableGen/AsmWriterInst.cpp
index ccf39c4c9a..508e4530d0 100644
--- a/utils/TableGen/AsmWriterInst.cpp
+++ b/utils/TableGen/AsmWriterInst.cpp
@@ -219,7 +219,10 @@ AsmWriterInst::AsmWriterInst(const CodeGenInstruction &CGI,
if (VarName.empty()) {
// Just a modifier, pass this into PrintSpecial.
- Operands.push_back(AsmWriterOperand("PrintSpecial", ~0U, Modifier));
+ Operands.push_back(AsmWriterOperand("PrintSpecial",
+ ~0U,
+ ~0U,
+ Modifier));
} else {
// Otherwise, normal operand.
unsigned OpNo = CGI.getOperandNamed(VarName);
@@ -227,7 +230,9 @@ AsmWriterInst::AsmWriterInst(const CodeGenInstruction &CGI,
if (CurVariant == Variant || CurVariant == ~0U) {
unsigned MIOp = OpInfo.MIOperandNo;
- Operands.push_back(AsmWriterOperand(OpInfo.PrinterMethodName, MIOp,
+ Operands.push_back(AsmWriterOperand(OpInfo.PrinterMethodName,
+ OpNo,
+ MIOp,
Modifier));
}
}