projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Push LLVMContext through GlobalVariables and IRBuilder.
[oota-llvm.git]
/
examples
/
BrainF
/
BrainF.cpp
diff --git
a/examples/BrainF/BrainF.cpp
b/examples/BrainF/BrainF.cpp
index d3261d79965cc09f4da5cae40c38fdbcce006eec..7ae268f59297cf6e69926b5c513a68a05bd48caa 100644
(file)
--- a/
examples/BrainF/BrainF.cpp
+++ b/
examples/BrainF/BrainF.cpp
@@
-128,6
+128,7
@@
void BrainF::header(LLVMContext& C) {
get("Error: The head has left the tape.", true);
GlobalVariable *aberrormsg = new GlobalVariable(
+ module->getContext(),
msg_0->getType(),
true,
GlobalValue::InternalLinkage,