summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLLexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.h')
-rw-r--r--llvm/lib/AsmParser/LLLexer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.h b/llvm/lib/AsmParser/LLLexer.h
index b5e58f1418e..4e054639414 100644
--- a/llvm/lib/AsmParser/LLLexer.h
+++ b/llvm/lib/AsmParser/LLLexer.h
@@ -24,12 +24,14 @@ namespace llvm {
class MemoryBuffer;
class Type;
class SMDiagnostic;
+ class LLVMContext;
class LLLexer {
const char *CurPtr;
MemoryBuffer *CurBuf;
SMDiagnostic &ErrorInfo;
SourceMgr &SM;
+ LLVMContext &Context;
// Information about the current token.
const char *TokStart;
@@ -42,7 +44,8 @@ namespace llvm {
std::string TheError;
public:
- explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &);
+ explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &,
+ LLVMContext &C);
~LLLexer() {}
lltok::Kind Lex() {
OpenPOWER on IntegriCloud