parent
84afae33a9
commit
76be2d1cca
|
@ -139,7 +139,7 @@ public:
|
||||||
: Filename(FN), LineNo(Line), ColumnNo(Col), Message(Msg),
|
: Filename(FN), LineNo(Line), ColumnNo(Col), Message(Msg),
|
||||||
LineContents(LineStr), ShowLine(showline) {}
|
LineContents(LineStr), ShowLine(showline) {}
|
||||||
|
|
||||||
void Print(const char *ProgName, raw_ostream &S);
|
void Print(const char *ProgName, raw_ostream &S) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
|
|
@ -188,7 +188,7 @@ void SourceMgr::PrintMessage(SMLoc Loc, const std::string &Msg,
|
||||||
// SMDiagnostic Implementation
|
// 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])
|
if (ProgName && ProgName[0])
|
||||||
S << ProgName << ": ";
|
S << ProgName << ": ";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue