diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-09-03 18:47:45 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-09-03 18:47:45 +0000 |
| commit | 038f3e31276f8cc86d91d0e4513e1a3ddb8509ba (patch) | |
| tree | 1097d7f1485a33f7cde31981c73f83b27efaa312 /lib/Target/Mips/AsmParser/MipsAsmParser.cpp | |
| parent | ad2d3e637a3a9eb368e71a1672331ee5e7809fe8 (diff) | |
| download | external_llvm-038f3e31276f8cc86d91d0e4513e1a3ddb8509ba.zip external_llvm-038f3e31276f8cc86d91d0e4513e1a3ddb8509ba.tar.gz external_llvm-038f3e31276f8cc86d91d0e4513e1a3ddb8509ba.tar.bz2 | |
[ms-inline asm] Add an interface to the GetMCInstOperandNum() function in the
MCTargetAsmParser class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/AsmParser/MipsAsmParser.cpp')
| -rw-r--r-- | lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 43bd345..deef844 100644 --- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -37,6 +37,11 @@ class MipsAsmParser : public MCTargetAsmParser { bool ParseDirective(AsmToken DirectiveID); OperandMatchResultTy parseMemOperand(SmallVectorImpl<MCParsedAsmOperand*>&); + + unsigned GetMCInstOperandNum(unsigned Kind, MCInst &Inst, + const SmallVectorImpl<MCParsedAsmOperand*> &Operands, + unsigned OperandNum); + public: MipsAsmParser(MCSubtargetInfo &sti, MCAsmParser &parser) : MCTargetAsmParser() { @@ -96,6 +101,14 @@ public: }; } +unsigned MipsAsmParser:: +GetMCInstOperandNum(unsigned Kind, MCInst &Inst, + const SmallVectorImpl<MCParsedAsmOperand*> &Operands, + unsigned OperandNum) { + assert (0 && "GetMCInstOperandNum() not supported by the Mips target."); + return 0; +} + bool MipsAsmParser:: MatchAndEmitInstruction(SMLoc IDLoc, SmallVectorImpl<MCParsedAsmOperand*> &Operands, |
