summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-10-16 05:43:57 +0000
committerChris Lattner <sabre@nondot.org>2011-10-16 05:43:57 +0000
commit03b80a402745ba2ba3b23d9753a19d995ce40671 (patch)
tree616c6d2f91b0588408cde5ae12328bef29eb9075 /llvm/lib/VMCore/LLVMContext.cpp
parenta3a06810836e42098c37baba492297e30bdf65c4 (diff)
downloadbcm5719-llvm-03b80a402745ba2ba3b23d9753a19d995ce40671.tar.gz
bcm5719-llvm-03b80a402745ba2ba3b23d9753a19d995ce40671.zip
Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a
string, pass it around as an enum. llvm-svn: 142107
Diffstat (limited to 'llvm/lib/VMCore/LLVMContext.cpp')
-rw-r--r--llvm/lib/VMCore/LLVMContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp
index ebd1e0aa1b0..3ed2c2c7e9e 100644
--- a/llvm/lib/VMCore/LLVMContext.cpp
+++ b/llvm/lib/VMCore/LLVMContext.cpp
@@ -100,7 +100,7 @@ void LLVMContext::emitError(unsigned LocCookie, StringRef ErrorStr) {
}
// If we do have an error handler, we can report the error and keep going.
- SMDiagnostic Diag("", "error: " + ErrorStr.str());
+ SMDiagnostic Diag("", SourceMgr::DK_Error, ErrorStr.str());
pImpl->InlineAsmDiagHandler(Diag, pImpl->InlineAsmDiagContext, LocCookie);
}
OpenPOWER on IntegriCloud