aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc/AsmLexer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-28 16:38:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-28 16:38:40 +0000
commit419adedaa1638fbe4e078c997f81e94327ebff5a (patch)
tree021b297a607ea6f9d9bc86876ce14f6f3f5ee02f /tools/llvm-mc/AsmLexer.cpp
parent3f87233d700eb4316cfaad59477834d2f5a2503b (diff)
downloadexternal_llvm-419adedaa1638fbe4e078c997f81e94327ebff5a.zip
external_llvm-419adedaa1638fbe4e078c997f81e94327ebff5a.tar.gz
external_llvm-419adedaa1638fbe4e078c997f81e94327ebff5a.tar.bz2
Drop some AsmLexer methods in favor of their AsmToken equivalents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/AsmLexer.cpp')
-rw-r--r--tools/llvm-mc/AsmLexer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-mc/AsmLexer.cpp b/tools/llvm-mc/AsmLexer.cpp
index de583ff..09fb34d 100644
--- a/tools/llvm-mc/AsmLexer.cpp
+++ b/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);