summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit654091391b61d49e6b5027376415fa853f30a313 (patch)
treeb6617c9e06667cd5cbb0966a2b166b9acf8bf3f9 /llvm/lib/Support
parent3c799811c1405a187f9769ca69553d27fbb0bd5c (diff)
downloadbcm5719-llvm-654091391b61d49e6b5027376415fa853f30a313.tar.gz
bcm5719-llvm-654091391b61d49e6b5027376415fa853f30a313.zip
give the SourceMgr object a cookie.
llvm-svn: 100504
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/SourceMgr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp
index fe2fbd96f77..4e7520c9d33 100644
--- a/llvm/lib/Support/SourceMgr.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud