summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-06 18:06:18 +0000
committerChris Lattner <sabre@nondot.org>2010-04-06 18:06:18 +0000
commit97c4cb8947a8616d92622ca4046fcaec7ec17463 (patch)
treecfccd77371de2e6c26e42ad114db18a5d9eed2f6 /llvm/lib/Support
parent6d67213ebbaf30500ef563d954c3885e427818d9 (diff)
downloadbcm5719-llvm-97c4cb8947a8616d92622ca4046fcaec7ec17463.tar.gz
bcm5719-llvm-97c4cb8947a8616d92622ca4046fcaec7ec17463.zip
enhance SMDiagnostic to also maintain a pointer to the SourceMgr.
Add a simplified constructor for clients that don't have locations like "file not found" errors. llvm-svn: 100538
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/SourceMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp
index 4e7520c9d33..da5681c5bc0 100644
--- a/llvm/lib/Support/SourceMgr.cpp
+++ b/llvm/lib/Support/SourceMgr.cpp
@@ -168,7 +168,7 @@ SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, const std::string &Msg,
}
PrintedMsg += Msg;
- return SMDiagnostic(Loc,
+ return SMDiagnostic(*this, Loc,
CurMB->getBufferIdentifier(), FindLineNumber(Loc, CurBuf),
Loc.getPointer()-LineStart, PrintedMsg,
LineStr, ShowLine);
OpenPOWER on IntegriCloud