parent
84afae33a9
commit
76be2d1cca
|
@ -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