diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-04 20:44:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-04 20:44:11 +0000 |
commit | ad6f3355a7463c25aead44b71c48b85409a53402 (patch) | |
tree | 4753a011138e159588c928fbd6886471f5fd58f9 /llvm/lib/AsmParser/LLParser.h | |
parent | 959af7ba30263943e937232f63dd1e093ab9c84b (diff) | |
download | bcm5719-llvm-ad6f3355a7463c25aead44b71c48b85409a53402.tar.gz bcm5719-llvm-ad6f3355a7463c25aead44b71c48b85409a53402.zip |
Refactor some parser interfaces to fix PR3278 and a FIXME:
ParseAssemblyString with a specified module would not parse
into the module, it would create and return a new one.
llvm-svn: 61635
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h index 73c1203a06f..e064c686b34 100644 --- a/llvm/lib/AsmParser/LLParser.h +++ b/llvm/lib/AsmParser/LLParser.h @@ -69,8 +69,8 @@ namespace llvm { std::map<unsigned, std::pair<GlobalValue*, LocTy> > ForwardRefValIDs; std::vector<GlobalValue*> NumberedVals; public: - LLParser(MemoryBuffer *F, ParseError &Err) : Lex(F, Err), M(0) {} - Module *Run(); + LLParser(MemoryBuffer *F, ParseError &Err, Module *m) : Lex(F, Err), M(m) {} + bool Run(); private: |