summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-08 19:03:57 +0000
committerOwen Anderson <resistor@mac.com>2009-07-08 19:03:57 +0000
commite9b11b431308f4766b73cda93e38ec930c912122 (patch)
treed72fc321dc0c445f8880443050c0a03c2ccdf7d2 /examples
parent515cdbe49d9bb5cd05be2713faaa7e2a66ddc3bc (diff)
downloadexternal_llvm-e9b11b431308f4766b73cda93e38ec930c912122.zip
external_llvm-e9b11b431308f4766b73cda93e38ec930c912122.tar.gz
external_llvm-e9b11b431308f4766b73cda93e38ec930c912122.tar.bz2
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
Diffstat (limited to 'examples')
-rw-r--r--examples/BrainF/BrainF.cpp5
1 files changed, 2 insertions, 3 deletions
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<Function>(module->