mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
add virtual methods to get the start/end of a MCParsedAsmOperand,
the default implementation returns "unknown". llvm-svn: 93470
This commit is contained in:
parent
882cb240a6
commit
eceb54e9c2
@ -20,7 +20,11 @@ class MCParsedAsmOperand {
|
||||
public:
|
||||
MCParsedAsmOperand() {}
|
||||
virtual ~MCParsedAsmOperand() {}
|
||||
// TODO: Out of line vfun.
|
||||
|
||||
/// getStartLoc - Get the location of the first token of this operand.
|
||||
virtual SMLoc getStartLoc() const;
|
||||
/// getEndLoc - Get the location of the last token of this operand.
|
||||
virtual SMLoc getEndLoc() const;
|
||||
};
|
||||
|
||||
} // end namespace llvm.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user