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:
parent
a5a618a417
commit
5d02574734
@ -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
|
||||
|
@ -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 << ": ";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user