mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 01:26:41 +00:00
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:
parent
e690ffbe6d
commit
42210668da
@ -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…
x
Reference in New Issue
Block a user