From 14bf52179226553e0ca4023a7b9131b0481d690c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 14 Jan 2010 22:29:57 +0000 Subject: add virtual methods to get the start/end of a MCParsedAsmOperand, the default implementation returns "unknown". llvm-svn: 93470 --- llvm/tools/llvm-mc/AsmParser.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/tools/llvm-mc/AsmParser.cpp') diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp index bd0e0e259dc..2eb75a76dd2 100644 --- a/llvm/tools/llvm-mc/AsmParser.cpp +++ b/llvm/tools/llvm-mc/AsmParser.cpp @@ -29,6 +29,11 @@ #include "llvm/Target/TargetAsmParser.h" using namespace llvm; +/// getStartLoc - Get the location of the first token of this operand. +SMLoc MCParsedAsmOperand::getStartLoc() const { return SMLoc(); } +SMLoc MCParsedAsmOperand::getEndLoc() const { return SMLoc(); } + + // Mach-O section uniquing. // // FIXME: Figure out where this should live, it should be shared by -- cgit v1.2.3