llvm-mc: Move MCAsmToken::getLoc() into MC library where it belongs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78980 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/MC/MCAsmLexer.cpp b/lib/MC/MCAsmLexer.cpp
index c5365b7..1e34ed6 100644
--- a/lib/MC/MCAsmLexer.cpp
+++ b/lib/MC/MCAsmLexer.cpp
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCAsmLexer.h"
+#include "llvm/Support/SourceMgr.h"
using namespace llvm;
@@ -16,3 +17,7 @@
MCAsmLexer::~MCAsmLexer() {
}
+
+SMLoc AsmToken::getLoc() const {
+ return SMLoc::getFromPointer(Str.data());
+}