Changes in directory llvm-stacker/lib/compiler:
StackerCompiler.cpp updated: 1.32 -> 1.33 --- Log message: For PR411: http://llvm.org/PR411 : Adjust to new Module interface for getFunction. --- Diffs of the changes: (+5 -5) StackerCompiler.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) Index: llvm-stacker/lib/compiler/StackerCompiler.cpp diff -u llvm-stacker/lib/compiler/StackerCompiler.cpp:1.32 llvm-stacker/lib/compiler/StackerCompiler.cpp:1.33 --- llvm-stacker/lib/compiler/StackerCompiler.cpp:1.32 Thu Feb 1 20:16:22 2007 +++ llvm-stacker/lib/compiler/StackerCompiler.cpp Mon Feb 5 15:20:45 2007 @@ -678,7 +678,7 @@ // 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 @@ // 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 @@ // 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 @@ // 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 @@ BasicBlock* StackerCompiler::handle_identifier( char * name ) { - Function* func = TheModule->getNamedFunction( name ); + Function* func = TheModule->getFunction( name ); BasicBlock* bb = new BasicBlock((echo?"call":"")); if ( func ) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits