Use LLVMContext for generating UndefValue constants too!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson
2009-07-02 17:04:01 +00:00
parent 480752e9f6
commit b43eae745e
2 changed files with 9 additions and 7 deletions

View File

@@ -77,6 +77,8 @@ namespace llvm {
Context(m->getContext()), Lex(F, Err), M(m) {}
bool Run();
LLVMContext& getContext() { return Context; }
private:
bool Error(LocTy L, const std::string &Msg) const {