summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 17:04:01 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 17:04:01 +0000
commit09063cec4e8e9d570b24ec820f337e77d035bff2 (patch)
tree534b01c8e4308bae066fedffaf2c03d3a7ada128 /llvm/lib/AsmParser/LLParser.h
parentf85afb2591dbfa04251234e60a61aa03ed552b23 (diff)
downloadbcm5719-llvm-09063cec4e8e9d570b24ec820f337e77d035bff2.tar.gz
bcm5719-llvm-09063cec4e8e9d570b24ec820f337e77d035bff2.zip
Use LLVMContext for generating UndefValue constants too!
llvm-svn: 74703
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index ae1d9c7665d..6691f60536e 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -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 {
OpenPOWER on IntegriCloud