summaryrefslogtreecommitdiffstats
path: root/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-15 04:05:58 +0000
committerChris Lattner <sabre@nondot.org>2004-02-15 04:05:58 +0000
commitc75bf528c1e29bf07bc8f7e76085e2950eae493e (patch)
tree5d9eca3555ea5c864d541d9712f08212adfd1754 /llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
parent5d56c478bac04bfa17b6a8222915031a81f48b87 (diff)
downloadbcm5719-llvm-c75bf528c1e29bf07bc8f7e76085e2950eae493e.tar.gz
bcm5719-llvm-c75bf528c1e29bf07bc8f7e76085e2950eae493e.zip
Remove dependence on the return type of ConstantArray::get
llvm-svn: 11463
Diffstat (limited to 'llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp')
-rw-r--r--llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp b/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
index 931796f9a81..11839793891 100644
--- a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
+++ b/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
@@ -173,7 +173,7 @@ StackerCompiler::compile(
TheExit = new Function(
exit_type, GlobalValue::ExternalLinkage, "exit", TheModule);
- ConstantArray* str_format = ConstantArray::get("%s");
+ Constant* str_format = ConstantArray::get("%s");
StrFormat = new GlobalVariable(
/*type=*/ArrayType::get( Type::SByteTy, 3 ),
/*isConstant=*/true,
@@ -183,7 +183,7 @@ StackerCompiler::compile(
/*parent=*/TheModule
);
- ConstantArray* in_str_format = ConstantArray::get(" %as");
+ Constant* in_str_format = ConstantArray::get(" %as");
InStrFormat = new GlobalVariable(
/*type=*/ArrayType::get( Type::SByteTy, 5 ),
/*isConstant=*/true,
@@ -193,7 +193,7 @@ StackerCompiler::compile(
/*parent=*/TheModule
);
- ConstantArray* num_format = ConstantArray::get("%d");
+ Constant* num_format = ConstantArray::get("%d");
NumFormat = new GlobalVariable(
/*type=*/ArrayType::get( Type::SByteTy, 3 ),
/*isConstant=*/true,
@@ -203,7 +203,7 @@ StackerCompiler::compile(
/*parent=*/TheModule
);
- ConstantArray* in_num_format = ConstantArray::get(" %d");
+ Constant* in_num_format = ConstantArray::get(" %d");
InNumFormat = new GlobalVariable(
/*type=*/ArrayType::get( Type::SByteTy, 4 ),
/*isConstant=*/true,
@@ -213,7 +213,7 @@ StackerCompiler::compile(
/*parent=*/TheModule
);
- ConstantArray* chr_format = ConstantArray::get("%c");
+ Constant* chr_format = ConstantArray::get("%c");
ChrFormat = new GlobalVariable(
/*type=*/ArrayType::get( Type::SByteTy, 3 ),
/*isConstant=*/true,
@@ -223,7 +223,7 @@ StackerCompiler::compile(
/*parent=*/TheModule
);
- ConstantArray* in_chr_format = ConstantArray::get(" %c");
+ Constant* in_chr_format = ConstantArray::get(" %c");
InChrFormat = new GlobalVariable(
/*type=*/ArrayType::get( Type::SByteTy, 4 ),
/*isConstant=*/true,
@@ -413,7 +413,7 @@ StackerCompiler::push_string( BasicBlock* bb, const char* value )
ArrayType* char_array = ArrayType::get( Type::SByteTy, len + 1 );
// Create an initializer for the value
- ConstantArray* initVal = ConstantArray::get( value );
+ Constant* initVal = ConstantArray::get( value );
// Create an internal linkage global variable to hold the constant.
GlobalVariable* strconst = new GlobalVariable(
OpenPOWER on IntegriCloud