]> granicus.if.org Git - clang/commitdiff
Move FullSourceLoc::dump into the .cpp file, the used attribute made us emit this...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 26 Feb 2012 16:55:50 +0000 (16:55 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 26 Feb 2012 16:55:50 +0000 (16:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151493 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceLocation.h
lib/Basic/SourceLocation.cpp

index c4a64e3d534ef18960557e6393096fdc4f363ae3..d5fa7e74acf5835c673ddb9309cc59c0d8a88b61 100644 (file)
@@ -325,7 +325,7 @@ public:
 
   /// Prints information about this FullSourceLoc to stderr. Useful for
   ///  debugging.
-  LLVM_ATTRIBUTE_USED void dump() const { SourceLocation::dump(*SrcMgr); }
+  LLVM_ATTRIBUTE_USED void dump() const;
 
   friend inline bool
   operator==(const FullSourceLoc &LHS, const FullSourceLoc &RHS) {
index 6e4f3e6ad7a428e4415648e9080fe342499fc742..bb5a10a9c7e4036eb483913a8970d1ff1fbf741c 100644 (file)
@@ -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);