aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-01-27 10:13:28 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-01-27 10:13:28 +0000
commited6530b9a247b7cd42d91728c9afeb660cb52ac0 (patch)
tree132d0c7e2393787ca0b6e10a1bbe28cb774228a5
parent4c301d06dcd3b0a4b3cb849766b54e63e11b6cd7 (diff)
downloadexternal_llvm-ed6530b9a247b7cd42d91728c9afeb660cb52ac0.zip
external_llvm-ed6530b9a247b7cd42d91728c9afeb660cb52ac0.tar.gz
external_llvm-ed6530b9a247b7cd42d91728c9afeb660cb52ac0.tar.bz2
Make SMDiagnostic::Print a const method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94672 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/SourceMgr.h2
-rw-r--r--lib/Support/SourceMgr.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h
index 176e852..bed2f13 100644
--- a/include/llvm/Support/SourceMgr.h
+++ b/include/llvm/Support/SourceMgr.h
@@ -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
diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp
index 7652e18..83c7964 100644
--- a/lib/Support/SourceMgr.cpp
+++ b/lib/Support/SourceMgr.cpp
@@ -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 << ": ";