aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCParser/AsmLexer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-12 17:10:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-12 17:10:00 +0000
commit4042c33cd8b7d5a2237b2bf3c0df4d1c59f4a73d (patch)
tree8e9b8e4e26a5a58dac634db383d05a6084e1919f /llvm/lib/MC/MCParser/AsmLexer.cpp
parent8f36402ac29354e17f4355d8f44856bc6d2bf272 (diff)
downloadllvm-4042c33cd8b7d5a2237b2bf3c0df4d1c59f4a73d.zip
llvm-4042c33cd8b7d5a2237b2bf3c0df4d1c59f4a73d.tar.gz
llvm-4042c33cd8b7d5a2237b2bf3c0df4d1c59f4a73d.tar.bz2
MC: Move getLoc() to MCAsmLexer().
llvm-svn: 108154
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmLexer.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmLexer.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCParser/AsmLexer.cpp b/llvm/lib/MC/MCParser/AsmLexer.cpp
index d696a418..465d983 100644
--- a/llvm/lib/MC/MCParser/AsmLexer.cpp
+++ b/llvm/lib/MC/MCParser/AsmLexer.cpp
@@ -23,7 +23,6 @@ using namespace llvm;
AsmLexer::AsmLexer(const MCAsmInfo &_MAI) : MAI(_MAI) {
CurBuf = NULL;
CurPtr = NULL;
- TokStart = 0;
}
AsmLexer::~AsmLexer() {
@@ -40,10 +39,6 @@ void AsmLexer::setBuffer(const MemoryBuffer *buf, const char *ptr) {
TokStart = 0;
}
-SMLoc AsmLexer::getLoc() const {
- return SMLoc::getFromPointer(TokStart);
-}
-
/// ReturnError - Set the error to the specified string at the specified
/// location. This is defined to always return AsmToken::Error.
AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) {