diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-21 05:04:44 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-21 05:04:44 +0000 |
commit | 0ee7d94ece918f22e67d0f09fcbc631c91091adc (patch) | |
tree | 8409b3d3693c8fee9038a3d37f02ec48bc9e85b9 /include/clang/Basic/SourceLocation.h | |
parent | 5878cbcfaa90b8515550db86033fd5a0efab971d (diff) |
Mark a few 'dump' methods as 'used' to make sure they are included in libclang
and useable while debugging.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 5854639914..c4a64e3d53 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -16,6 +16,7 @@ #include "clang/Basic/LLVM.h" #include "llvm/Support/PointerLikeTypeTraits.h" +#include "llvm/Support/Compiler.h" #include <utility> #include <functional> #include <cassert> @@ -324,7 +325,7 @@ public: /// Prints information about this FullSourceLoc to stderr. Useful for /// debugging. - void dump() const { SourceLocation::dump(*SrcMgr); } + LLVM_ATTRIBUTE_USED void dump() const { SourceLocation::dump(*SrcMgr); } friend inline bool operator==(const FullSourceLoc &LHS, const FullSourceLoc &RHS) { |