diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-26 16:55:50 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-26 16:55:50 +0000 |
commit | e60db7b86abb2ddfdcb1f31d9e986f99b1e5c9f0 (patch) | |
tree | c9f161e8372115fa53678969c6071d91af73b695 /clang/lib/Basic/SourceLocation.cpp | |
parent | 9ffe10106e3a30dc414c1552d2cf3f3f361ab3f2 (diff) | |
download | llvm-e60db7b86abb2ddfdcb1f31d9e986f99b1e5c9f0.zip llvm-e60db7b86abb2ddfdcb1f31d9e986f99b1e5c9f0.tar.gz llvm-e60db7b86abb2ddfdcb1f31d9e986f99b1e5c9f0.tar.bz2 |
Move FullSourceLoc::dump into the .cpp file, the used attribute made us emit this into every TU that includes SourceLocation.h.
llvm-svn: 151493
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index 6e4f3e6..bb5a10a 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/lib/Basic/SourceLocation.cpp @@ -115,6 +115,10 @@ bool FullSourceLoc::isBeforeInTranslationUnitThan(SourceLocation Loc) const { return SrcMgr->isBeforeInTranslationUnit(*this, Loc); } +void FullSourceLoc::dump() const { + SourceLocation::dump(*SrcMgr); +} + const char *FullSourceLoc::getCharacterData(bool *Invalid) const { assert(isValid()); return SrcMgr->getCharacterData(*this, Invalid); |