Revert "Add LLVMContext::emitWarning methods and use them. <rdar://problem/12867368>"
authorBob Wilson <bob.wilson@apple.com>
Fri, 8 Feb 2013 21:48:29 +0000 (21:48 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 8 Feb 2013 21:48:29 +0000 (21:48 +0000)
commit58446916b71c4ff79962081ea7c4df078c388b0e
treebcdb044c5d6910123197f8a861ca0b11d33874a0
parentb2d1275188c997e279293afc031a88e03871f9e0
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174748 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/LLVMContext.h
lib/Analysis/ProfileDataLoaderPass.cpp
lib/Analysis/ProfileInfoLoaderPass.cpp
lib/CodeGen/IntrinsicLowering.cpp
lib/IR/LLVMContext.cpp
lib/Transforms/Instrumentation/EdgeProfiling.cpp
lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
lib/Transforms/Instrumentation/PathProfiling.cpp