summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 21:57:44 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 21:57:44 +0000
commit7373c6bbd660d985b4530e7727cad078f69bc319 (patch)
tree05c810726f170c97c7d81e9fd8814d96dfb4c659 /llvm/lib/AsmParser/LLParser.h
parent394b4156cf954913e2b99ed728415eb373dd9703 (diff)
downloadbcm5719-llvm-7373c6bbd660d985b4530e7727cad078f69bc319.tar.gz
bcm5719-llvm-7373c6bbd660d985b4530e7727cad078f69bc319.zip
Convert LLParser to use LLVMContext for creating constants.
llvm-svn: 74648
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index 41c2ee75c60..924c9293cb1 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -15,6 +15,7 @@
#define LLVM_ASMPARSER_LLPARSER_H
#include "LLLexer.h"
+#include "llvm/Module.h"
#include "llvm/Type.h"
#include <map>
@@ -29,13 +30,14 @@ namespace llvm {
class GlobalValue;
class MDString;
class MDNode;
+ class LLVMContext;
struct ValID;
class LLParser {
public:
typedef LLLexer::LocTy LocTy;
private:
-
+ const LLVMContext& Context;
LLLexer Lex;
Module *M;
@@ -72,7 +74,8 @@ namespace llvm {
std::map<unsigned, std::pair<GlobalValue*, LocTy> > ForwardRefValIDs;
std::vector<GlobalValue*> NumberedVals;
public:
- LLParser(MemoryBuffer *F, ParseError &Err, Module *m) : Lex(F, Err), M(m) {}
+ LLParser(MemoryBuffer *F, ParseError &Err, Module *m) :
+ Context(M->getContext()), Lex(F, Err), M(m) {}
bool Run();
private:
OpenPOWER on IntegriCloud