1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Make SMDiagnostic::Print a const method.

llvm-svn: 94672
This commit is contained in:
Mikhail Glushenkov 2010-01-27 10:13:28 +00:00
parent a5a618a417
commit 5d02574734
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 << ": ";