diff options
Diffstat (limited to 'Basic/SourceManager.cpp')
-rw-r--r-- | Basic/SourceManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Basic/SourceManager.cpp b/Basic/SourceManager.cpp index e53547087d..df13fad37c 100644 --- a/Basic/SourceManager.cpp +++ b/Basic/SourceManager.cpp @@ -231,7 +231,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. -std::string SourceManager::getSourceName(SourceLocation Loc) { +const char *SourceManager::getSourceName(SourceLocation Loc) { unsigned FileID = Loc.getFileID(); if (FileID == 0) return ""; return getFileInfo(FileID)->Buffer->getBufferIdentifier(); |