ELF: Add support for the asm .version directive.
[oota-llvm.git] / lib / MC / MCParser / MCAsmLexer.cpp
index dceece78ba10b8a7fb1fca774474a3a93fc18340..3a3ff147117ef65d1eb67ed86914b739b99d848a 100644 (file)
@@ -25,3 +25,7 @@ SMLoc MCAsmLexer::getLoc() const {
 SMLoc AsmToken::getLoc() const {
   return SMLoc::getFromPointer(Str.data());
 }
+
+SMLoc AsmToken::getEndLoc() const {
+  return SMLoc::getFromPointer(Str.data() + Str.size() - 1);
+}