summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-05 21:19:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-05 21:19:13 +0000
commit1241d6d5abb58dc8af3f3dc8edc3d3b3158111a4 (patch)
treead451cdec90d6387b43be20fdfdd733e8003a1b6 /llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
parent3c52e275ea70ff0466b7a49f14ae02fa136f52f7 (diff)
downloadbcm5719-llvm-1241d6d5abb58dc8af3f3dc8edc3d3b3158111a4.tar.gz
bcm5719-llvm-1241d6d5abb58dc8af3f3dc8edc3d3b3158111a4.zip
For PR411:
Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) llvm-svn: 33922
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
index add1bf01ef0..23f2093499c 100644
--- a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
@@ -45,7 +45,7 @@ ModulePass *llvm::createFunctionProfilerPass() {
}
bool FunctionProfiler::runOnModule(Module &M) {
- Function *Main = M.getMainFunction();
+ Function *Main = M.getFunction("main");
if (Main == 0) {
cerr << "WARNING: cannot insert function profiling into a module"
<< " with no main function!\n";
@@ -88,7 +88,7 @@ namespace {
ModulePass *llvm::createBlockProfilerPass() { return new BlockProfiler(); }
bool BlockProfiler::runOnModule(Module &M) {
- Function *Main = M.getMainFunction();
+ Function *Main = M.getFunction("main");
if (Main == 0) {
cerr << "WARNING: cannot insert block profiling into a module"
<< " with no main function!\n";
OpenPOWER on IntegriCloud