summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2013-02-08 21:48:29 +0000
committerBob Wilson <bob.wilson@apple.com>2013-02-08 21:48:29 +0000
commitbfb44ef9cb430ef35ee1192388a08dbb283d0632 (patch)
treebb396bb3a6513049d1f4ddf081e137b51eea8965 /llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
parentb9bf8dca47611cf1f79713c4cddcce13113e13ca (diff)
downloadbcm5719-llvm-bfb44ef9cb430ef35ee1192388a08dbb283d0632.tar.gz
bcm5719-llvm-bfb44ef9cb430ef35ee1192388a08dbb283d0632.zip
Revert "Add LLVMContext::emitWarning methods and use them. <rdar://problem/12867368>"
This reverts r171041. This was a nice idea that didn't work out well. Clang warnings need to be associated with warning groups so that they can be selectively disabled, promoted to errors, etc. This simplistic patch didn't allow for that. Enhancing it to provide some way for the backend to specify a front-end warning type seems like overkill for the few uses of this, at least for now. llvm-svn: 174748
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/PathProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/PathProfiling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp b/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
index 358bbeb3c87..7de73269cf2 100644
--- a/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
@@ -1345,8 +1345,8 @@ bool PathProfiler::runOnModule(Module &M) {
Main = M.getFunction("MAIN__");
if (!Main) {
- Context->emitWarning("cannot insert edge profiling into a module"
- " with no main function");
+ errs() << "WARNING: cannot insert path profiling into a module"
+ << " with no main function!\n";
return false;
}
OpenPOWER on IntegriCloud