mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
add virtual methods to get the start/end of a MCParsedAsmOperand,
the default implementation returns "unknown". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9898671a74
commit
9d3c755fd6
@ -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