summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
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
commit76be2d1ccad2e9cd0a6588be4632d0561fdf07b3 (patch)
tree331248d9ffc255d730cf624e58da0ee7c53cfe1a /llvm/lib/Support
parent84afae33a9655df13c8cccae94526ad529a929aa (diff)
downloadbcm5719-llvm-76be2d1ccad2e9cd0a6588be4632d0561fdf07b3.tar.gz
bcm5719-llvm-76be2d1ccad2e9cd0a6588be4632d0561fdf07b3.zip
Make SMDiagnostic::Print a const method.
llvm-svn: 94672
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/SourceMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp
index 7652e186cad..83c7964ca00 100644
--- a/llvm/lib/Support/SourceMgr.cpp
+++ b/llvm/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 << ": ";
OpenPOWER on IntegriCloud