summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2012-01-31 09:35:01 +0000
committerFrancois Pichet <pichet2000@gmail.com>2012-01-31 09:35:01 +0000
commit4ce6e6ef87ce538b3c9405acf267018bc790e9e6 (patch)
treee49a9736bb5dd1bb51e8f94ace7c9b4095ed01e2 /llvm/examples
parentccda0d50601b9a0e57a49cbd15025dce9d3bad5f (diff)
downloadbcm5719-llvm-4ce6e6ef87ce538b3c9405acf267018bc790e9e6.tar.gz
bcm5719-llvm-4ce6e6ef87ce538b3c9405acf267018bc790e9e6.zip
Fix BrainF compilation.
llvm-svn: 149375
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/BrainF/BrainF.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp
index df6687f2805..b002d1f496d 100644
--- a/llvm/examples/BrainF/BrainF.cpp
+++ b/llvm/examples/BrainF/BrainF.cpp
@@ -134,7 +134,8 @@ void BrainF::header(LLVMContext& C) {
{
//@aberrormsg = internal constant [%d x i8] c"\00"
Constant *msg_0 =
- ConstantArray::get(C, "Error: The head has left the tape.", true);
+ ConstantDataArray::getString(C, "Error: The head has left the tape.",
+ true);
GlobalVariable *aberrormsg = new GlobalVariable(
*module,
OpenPOWER on IntegriCloud