summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/EdgeProfiling.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/EdgeProfiling.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/EdgeProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
index 97b5d5ca424..4960d3c2065 100644
--- a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
@@ -40,7 +40,7 @@ namespace {
ModulePass *llvm::createEdgeProfilerPass() { return new EdgeProfiler(); }
bool EdgeProfiler::runOnModule(Module &M) {
- Function *Main = M.getMainFunction();
+ Function *Main = M.getFunction("main");
if (Main == 0) {
cerr << "WARNING: cannot insert edge profiling into a module"
<< " with no main function!\n";
OpenPOWER on IntegriCloud