summaryrefslogtreecommitdiffstats
path: root/llvm/examples/BrainF/BrainF.cpp
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
commitb17f32945fa6dd8e552a16cc5273bba5805cf4e4 (patch)
treeb8383165ab804187660d5c8eddb2dc7486730b93 /llvm/examples/BrainF/BrainF.cpp
parentd5ffa8ffb62df34c6fa3ba8ec4c29b2ea2891ad0 (diff)
downloadbcm5719-llvm-b17f32945fa6dd8e552a16cc5273bba5805cf4e4.tar.gz
bcm5719-llvm-b17f32945fa6dd8e552a16cc5273bba5805cf4e4.zip
Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required.
llvm-svn: 75025
Diffstat (limited to 'llvm/examples/BrainF/BrainF.cpp')
-rw-r--r--llvm/examples/BrainF/BrainF.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp
index 7ae268f5929..058ef8c72de 100644
--- a/llvm/examples/BrainF/BrainF.cpp
+++ b/llvm/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->
OpenPOWER on IntegriCloud