summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-03 02:30:13 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-03 02:30:13 +0000
commit30c0cb2f30c49754ab8f8f778e70d8deac692f19 (patch)
tree2a29de7d0aafe7666b5670f1e5cb1ed8a53cfa94 /clang/lib/Sema/SemaStmtAsm.cpp
parente38bb6a34eaad783e41e31588ad414d8c93e9bff (diff)
downloadbcm5719-llvm-30c0cb2f30c49754ab8f8f778e70d8deac692f19.tar.gz
bcm5719-llvm-30c0cb2f30c49754ab8f8f778e70d8deac692f19.zip
[ms-inline asm] Update for the MatchInstruction API change in r163101.
llvm-svn: 163102
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index 14ea70b2924..bdd2cbce951 100644
--- a/clang/lib/Sema/SemaStmtAsm.cpp
+++ b/clang/lib/Sema/SemaStmtAsm.cpp
@@ -537,23 +537,25 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc,
Parser->ParseIdentifier(IDVal);
// Canonicalize the opcode to lower case.
- SmallString<128> Opcode;
+ SmallString<128> OpcodeStr;
for (unsigned i = 0, e = IDVal.size(); i != e; ++i)
- Opcode.push_back(tolower(IDVal[i]));
+ OpcodeStr.push_back(tolower(IDVal[i]));
// Parse the operands.
llvm::SMLoc IDLoc;
SmallVector<llvm::MCParsedAsmOperand*, 8> Operands;
- bool HadError = TargetParser->ParseInstruction(Opcode.str(), IDLoc,
+ bool HadError = TargetParser->ParseInstruction(OpcodeStr.str(), IDLoc,
Operands);
// If we had an error parsing the operands, fail gracefully.
if (HadError) { DEF_SIMPLE_MSASM; return Owned(NS); }
// Match the MCInstr.
+ unsigned Kind;
+ unsigned Opcode;
unsigned ErrorInfo;
SmallVector<llvm::MCInst, 2> Instrs;
- HadError = TargetParser->MatchInstruction(IDLoc, Operands, Instrs,
- ErrorInfo,
+ HadError = TargetParser->MatchInstruction(IDLoc, Kind, Opcode, Operands,
+ Instrs, ErrorInfo,
/*matchingInlineAsm*/ true);
// If we had an error parsing the operands, fail gracefully.
if (HadError) { DEF_SIMPLE_MSASM; return Owned(NS); }
OpenPOWER on IntegriCloud