aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-06 00:33:43 +0000
committerChris Lattner <sabre@nondot.org>2010-04-06 00:33:43 +0000
commit383a382783f7f9f71a75db7ec67b3a9893df994d (patch)
treee60e98e9856f8e35cc9dbfc4a7d451b3885c7425 /lib/Support
parent4584b338c016e905379617795079c565f73a0cfb (diff)
downloadexternal_llvm-383a382783f7f9f71a75db7ec67b3a9893df994d.zip
external_llvm-383a382783f7f9f71a75db7ec67b3a9893df994d.tar.gz
external_llvm-383a382783f7f9f71a75db7ec67b3a9893df994d.tar.bz2
give the SourceMgr object a cookie.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/SourceMgr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp
index fe2fbd9..4e7520c 100644
--- a/lib/Support/SourceMgr.cpp
+++ b/lib/Support/SourceMgr.cpp
@@ -178,7 +178,8 @@ void SourceMgr::PrintMessage(SMLoc Loc, const std::string &Msg,
const char *Type, bool ShowLine) const {
// Report the message with the diagnostic handler if present.
if (DiagHandler) {
- DiagHandler(GetMessage(Loc, Msg, Type, ShowLine), DiagContext);
+ DiagHandler(GetMessage(Loc, Msg, Type, ShowLine),
+ DiagContext, DiagLocCookie);
return;
}