diff options
Diffstat (limited to 'llvm/tools/llvm-mc/AsmLexer.cpp')
-rw-r--r-- | llvm/tools/llvm-mc/AsmLexer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mc/AsmLexer.cpp b/llvm/tools/llvm-mc/AsmLexer.cpp index de583ffa8cc..09fb34d6d9b 100644 --- a/llvm/tools/llvm-mc/AsmLexer.cpp +++ b/llvm/tools/llvm-mc/AsmLexer.cpp @@ -35,6 +35,10 @@ SMLoc AsmLexer::getLoc() const { return SMLoc::getFromPointer(TokStart); } +SMLoc AsmToken::getLoc() const { + return SMLoc::getFromPointer(Str.data()); +} + void AsmLexer::PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type) const { SrcMgr.PrintMessage(Loc, Msg, Type); |