Remove "localize global" optimization
[oota-llvm.git] / lib / Transforms / Instrumentation / PathProfiling.cpp
index 358bbeb3c87f5a2babcfaad141307409b9b5b2bb..7de73269cf2b67554adb316e8b3e12d24b80d9a7 100644 (file)
@@ -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;
   }