From e9b11b431308f4766b73cda93e38ec930c912122 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 8 Jul 2009 19:03:57 +0000 Subject: Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75025 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/BrainF/BrainF.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/BrainF') diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp index 7ae268f..058ef8c 100644 --- a/examples/BrainF/BrainF.cpp +++ b/examples/BrainF/BrainF.cpp @@ -128,13 +128,12 @@ void BrainF::header(LLVMContext& C) { get("Error: The head has left the tape.", true); GlobalVariable *aberrormsg = new GlobalVariable( - module->getContext(), + *module, msg_0->getType(), true, GlobalValue::InternalLinkage, msg_0, - "aberrormsg", - module); + "aberrormsg"); //declare i32 @puts(i8 *) Function *puts_func = cast(module-> -- cgit v1.1