give the SourceMgr object a cookie.

llvm-svn: 100504
This commit is contained in:
Chris Lattner
2010-04-06 00:33:43 +00:00
parent 3c799811c1
commit 654091391b
2 changed files with 9 additions and 4 deletions

View File

@@ -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;
}