diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-17 08:13:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-17 08:13:01 +0000 |
commit | b0e36085c437c71f126680b6fa38d6fc112f6471 (patch) | |
tree | 7f3b1297964a6642caca8de054acb09fa649671c /llvm/lib/Support/SourceMgr.cpp | |
parent | c03d04ee1f032dafc99e2aebbfde80f68f876797 (diff) | |
download | bcm5719-llvm-b0e36085c437c71f126680b6fa38d6fc112f6471.tar.gz bcm5719-llvm-b0e36085c437c71f126680b6fa38d6fc112f6471.zip |
now that AsmPrinter::EmitInlineAsm is factored right, we can eliminate the
cookie argument to the SourceMgr diagnostic stuff. This cleanly separates
LLVMContext's inlineasm handler from the sourcemgr error handling
definition, increasing type safety and cleaning things up.
llvm-svn: 119486
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index 3800753ecdc..0dc1331d260 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -178,8 +178,7 @@ void SourceMgr::PrintMessage(SMLoc Loc, const Twine &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, DiagLocCookie); + DiagHandler(GetMessage(Loc, Msg, Type, ShowLine), DiagContext); return; } |