summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCTargetAsmParser.h
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-21 18:14:59 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-21 18:14:59 +0000
commit64bfcbbc58ad485db157190496f0f39156b5a516 (patch)
tree2e40b93e5363a97b6c8f35effb2c7efbacfa87b9 /include/llvm/MC/MCTargetAsmParser.h
parent4c1d2baa7c3303302fec9a15ebc4021bd5d45002 (diff)
downloadllvm-64bfcbbc58ad485db157190496f0f39156b5a516.tar.gz
llvm-64bfcbbc58ad485db157190496f0f39156b5a516.tar.bz2
llvm-64bfcbbc58ad485db157190496f0f39156b5a516.tar.xz
[ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl. In general,
this is the index of the operand that failed to match. Note: This may cause a buildbot failure due to an API mismatch in clang. Should recover with my next commit to clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCTargetAsmParser.h')
-rw-r--r--include/llvm/MC/MCTargetAsmParser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/MC/MCTargetAsmParser.h b/include/llvm/MC/MCTargetAsmParser.h
index 929a2042ca..0200e0c4df 100644
--- a/include/llvm/MC/MCTargetAsmParser.h
+++ b/include/llvm/MC/MCTargetAsmParser.h
@@ -88,7 +88,9 @@ public:
virtual bool
MatchInstruction(SMLoc IDLoc,
SmallVectorImpl<MCParsedAsmOperand*> &Operands,
- SmallVectorImpl<MCInst> &MCInsts) {
+ SmallVectorImpl<MCInst> &MCInsts,
+ unsigned &OrigErrorInfo) {
+ OrigErrorInfo = ~0x0;
return true;
}