From 76be2d1ccad2e9cd0a6588be4632d0561fdf07b3 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Wed, 27 Jan 2010 10:13:28 +0000 Subject: Make SMDiagnostic::Print a const method. llvm-svn: 94672 --- llvm/lib/Support/SourceMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/SourceMgr.cpp') diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index 7652e18..83c7964 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -188,7 +188,7 @@ void SourceMgr::PrintMessage(SMLoc Loc, const std::string &Msg, // SMDiagnostic Implementation //===----------------------------------------------------------------------===// -void SMDiagnostic::Print(const char *ProgName, raw_ostream &S) { +void SMDiagnostic::Print(const char *ProgName, raw_ostream &S) const { if (ProgName && ProgName[0]) S << ProgName << ": "; -- cgit v1.1