summaryrefslogtreecommitdiffstats
path: root/stacker
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-05 21:20:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-05 21:20:45 +0000
commit4d2770d8891f2a9a1e3ae81612a95a57983bab65 (patch)
treea83acdaae498fb28d60c15af28f61859a06dc98b /stacker
parent1241d6d5abb58dc8af3f3dc8edc3d3b3158111a4 (diff)
downloadbcm5719-llvm-4d2770d8891f2a9a1e3ae81612a95a57983bab65.tar.gz
bcm5719-llvm-4d2770d8891f2a9a1e3ae81612a95a57983bab65.zip
For PR411:
Adjust to new Module interface for getFunction. llvm-svn: 33923
Diffstat (limited to 'stacker')
-rw-r--r--stacker/lib/compiler/StackerCompiler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/stacker/lib/compiler/StackerCompiler.cpp b/stacker/lib/compiler/StackerCompiler.cpp
index 844c782c73d..807269fa91c 100644
--- a/stacker/lib/compiler/StackerCompiler.cpp
+++ b/stacker/lib/compiler/StackerCompiler.cpp
@@ -678,7 +678,7 @@ StackerCompiler::handle_definition( char * name, Function* f )
// Look up the function name in the module to see if it was forward
// declared.
#if 0
- Function* existing_function = TheModule->getNamedFunction( name );
+ Function* existing_function = TheModule->getFunction( name );
// If the function already exists...
if ( existing_function )
@@ -742,7 +742,7 @@ StackerCompiler::handle_if( char* ifTrue, char* ifFalse )
// Fill the true block
std::vector<Value*> args;
- if ( Function* true_func = TheModule->getNamedFunction(ifTrue) )
+ if ( Function* true_func = TheModule->getFunction(ifTrue) )
{
true_bb->getInstList().push_back(
new CallInst( true_func, args ) );
@@ -760,7 +760,7 @@ StackerCompiler::handle_if( char* ifTrue, char* ifFalse )
// Fill the false block
if ( false_bb )
{
- if ( Function* false_func = TheModule->getNamedFunction(ifFalse) )
+ if ( Function* false_func = TheModule->getFunction(ifFalse) )
{
false_bb->getInstList().push_back(
new CallInst( false_func, args ) );
@@ -815,7 +815,7 @@ StackerCompiler::handle_while( char* todo )
// Fill in the body
std::vector<Value*> args;
- if ( Function* body_func = TheModule->getNamedFunction(todo) )
+ if ( Function* body_func = TheModule->getFunction(todo) )
{
body->getInstList().push_back( new CallInst( body_func, args ) );
body->getInstList().push_back( new BranchInst( test ) );
@@ -839,7 +839,7 @@ StackerCompiler::handle_while( char* todo )
BasicBlock*
StackerCompiler::handle_identifier( char * name )
{
- Function* func = TheModule->getNamedFunction( name );
+ Function* func = TheModule->getFunction( name );
BasicBlock* bb = new BasicBlock((echo?"call":""));
if ( func )
{
OpenPOWER on IntegriCloud