Make SMDiagnostic::Print a const method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov 2010-01-27 10:13:28 +00:00
parent e690ffbe6d
commit 42210668da
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ public:
: Filename(FN), LineNo(Line), ColumnNo(Col), Message(Msg),
LineContents(LineStr), ShowLine(showline) {}
void Print(const char *ProgName, raw_ostream &S);
void Print(const char *ProgName, raw_ostream &S) const;
};
} // end llvm namespace

View File

@ -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 << ": ";