summaryrefslogtreecommitdiff
path: root/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
commita0935775db5886ba8710840de868bbd84554da90 (patch)
tree5bc3c2edb90f7f7d121514b5f7d912e943477e60 /examples
parentb319f127274291a2f58e1f2a146f4e5a274f1e10 (diff)
downloadllvm-a0935775db5886ba8710840de868bbd84554da90.tar.gz
llvm-a0935775db5886ba8710840de868bbd84554da90.tar.bz2
llvm-a0935775db5886ba8710840de868bbd84554da90.tar.xz
Fix BrainF compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/BrainF/BrainF.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp
index df6687f280..b002d1f496 100644
--- a/examples/BrainF/BrainF.cpp
+++ b/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,