From 688b0490e22eb67623f5aaa24406209be74efcb2 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 5 Feb 2007 21:19:13 +0000 Subject: For PR411: Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33922 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/TraceBasicBlocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Transforms/Instrumentation/TraceBasicBlocks.cpp') diff --git a/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp b/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp index 68e0d282cc..4c09fb61c5 100644 --- a/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp +++ b/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp @@ -58,7 +58,7 @@ static void InsertInstrumentationCall (BasicBlock *BB, } bool TraceBasicBlocks::runOnModule(Module &M) { - Function *Main = M.getMainFunction(); + Function *Main = M.getFunction("main"); if (Main == 0) { cerr << "WARNING: cannot insert basic-block trace instrumentation" << " into a module with no main function!\n"; -- cgit v1.2.3-18-g5258