summaryrefslogtreecommitdiff
path: root/Basic
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-30 05:59:30 +0000
committerChris Lattner <sabre@nondot.org>2007-08-30 05:59:30 +0000
commit8b6ca8866f09fd8e018a329a0749d2dcf11b146a (patch)
treeda103f2012af718159b3ca5c8e3847c17ed45077 /Basic
parentfb22d96692c5240fb8d611290dbf7eeed3759c73 (diff)
downloadclang-8b6ca8866f09fd8e018a329a0749d2dcf11b146a.tar.gz
constify a method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic')
-rw-r--r--Basic/SourceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Basic/SourceManager.cpp b/Basic/SourceManager.cpp
index 4d525fc2bd..96da763451 100644
--- a/Basic/SourceManager.cpp
+++ b/Basic/SourceManager.cpp
@@ -234,7 +234,7 @@ unsigned SourceManager::getColumnNumber(SourceLocation Loc) const {
/// getSourceName - This method returns the name of the file or buffer that
/// the SourceLocation specifies. This can be modified with #line directives,
/// etc.
-const char *SourceManager::getSourceName(SourceLocation Loc) {
+const char *SourceManager::getSourceName(SourceLocation Loc) const {
unsigned FileID = Loc.getFileID();
if (FileID == 0) return "";
return getFileInfo(FileID)->Buffer->getBufferIdentifier();