llvm-mc: Move MCAsmToken::getLoc() into MC library where it belongs.

llvm-svn: 78980
This commit is contained in:
Daniel Dunbar 2009-08-14 02:18:40 +00:00
parent 8a3ff4615e
commit da9a46b9de
2 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCAsmLexer.h"
#include "llvm/Support/SourceMgr.h"
using namespace llvm;
@ -16,3 +17,7 @@ MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()) {
MCAsmLexer::~MCAsmLexer() {
}
SMLoc AsmToken::getLoc() const {
return SMLoc::getFromPointer(Str.data());
}

View File

@ -34,10 +34,6 @@ 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);