summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLLexer.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-08-18 22:28:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-08-18 22:28:28 +0000
commit43d22b83dcfcac2b63c5cfd7cf23f511275a0353 (patch)
tree0701b129afa738da537267d409e13a005aecbb37 /llvm/lib/AsmParser/LLLexer.h
parent7342ca41559182c2fceea355cff5c4d853e473a7 (diff)
downloadbcm5719-llvm-43d22b83dcfcac2b63c5cfd7cf23f511275a0353.tar.gz
bcm5719-llvm-43d22b83dcfcac2b63c5cfd7cf23f511275a0353.zip
These classes only need a StringRef, not a MemoryBuffer.
llvm-svn: 215945
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.h')
-rw-r--r--llvm/lib/AsmParser/LLLexer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.h b/llvm/lib/AsmParser/LLLexer.h
index 683939fe62d..219827fd330 100644
--- a/llvm/lib/AsmParser/LLLexer.h
+++ b/llvm/lib/AsmParser/LLLexer.h
@@ -28,7 +28,7 @@ namespace llvm {
class LLLexer {
const char *CurPtr;
- MemoryBuffer *CurBuf;
+ StringRef CurBuf;
SMDiagnostic &ErrorInfo;
SourceMgr &SM;
LLVMContext &Context;
@@ -43,7 +43,7 @@ namespace llvm {
APSInt APSIntVal;
public:
- explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &,
+ explicit LLLexer(StringRef StartBuf, SourceMgr &SM, SMDiagnostic &,
LLVMContext &C);
~LLLexer() {}
OpenPOWER on IntegriCloud