summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r--clang/lib/Basic/SourceLocation.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp
index 41ada637bd7..c68cb8ba925 100644
--- a/clang/lib/Basic/SourceLocation.cpp
+++ b/clang/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");
OpenPOWER on IntegriCloud