aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Basic/SourceLocation.cpp')
-rw-r--r--lib/Basic/SourceLocation.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp
index 41ada637bd..c68cb8ba92 100644
--- a/lib/Basic/SourceLocation.cpp
+++ b/lib/Basic/SourceLocation.cpp
@@ -98,9 +98,8 @@ bool FullSourceLoc::isInSystemHeader() const {
return SrcMgr->isInSystemHeader(Loc);
}
-
-const char * FullSourceLoc::getCharacterData() const {
- assert (isValid());
+const char *FullSourceLoc::getCharacterData() const {
+ assert(isValid());
return SrcMgr->getCharacterData(Loc);
}
@@ -109,10 +108,6 @@ const llvm::MemoryBuffer* FullSourceLoc::getBuffer() const {
return SrcMgr->getBuffer(Loc.getFileID());
}
-unsigned FullSourceLoc::getCanonicalFileID() const {
- return SrcMgr->getCanonicalFileID(Loc);
-}
-
void FullSourceLoc::dump() const {
if (!isValid()) {
fprintf(stderr, "Invalid Loc\n");