From bfb44ef9cb430ef35ee1192388a08dbb283d0632 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 8 Feb 2013 21:48:29 +0000 Subject: Revert "Add LLVMContext::emitWarning methods and use them. " 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 --- llvm/lib/Analysis/ProfileDataLoaderPass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Analysis/ProfileDataLoaderPass.cpp') diff --git a/llvm/lib/Analysis/ProfileDataLoaderPass.cpp b/llvm/lib/Analysis/ProfileDataLoaderPass.cpp index 51b7f1d8691..2ee0093a8f5 100644 --- a/llvm/lib/Analysis/ProfileDataLoaderPass.cpp +++ b/llvm/lib/Analysis/ProfileDataLoaderPass.cpp @@ -177,8 +177,8 @@ bool ProfileMetadataLoaderPass::runOnModule(Module &M) { unsigned ReadCount = matchEdges(M, PB, Counters); if (ReadCount != Counters.size()) { - M.getContext().emitWarning("profile information is inconsistent " - "with the current program"); + errs() << "WARNING: profile information is inconsistent with " + << "the current program!\n"; } NumEdgesRead = ReadCount; -- cgit v1.2.3