diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-09-30 18:05:39 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-09-30 18:05:39 +0000 |
commit | 407584c433540afee8c4a687a08b4f3c50ae3c24 (patch) | |
tree | f33f05a654dee43ada45a64de8a1786156c79045 /clang/lib/Analysis/ProgramPoint.cpp | |
parent | 99ad2a5723ce09f2264b91f6e45e2e7428d82e7d (diff) | |
download | bcm5719-llvm-407584c433540afee8c4a687a08b4f3c50ae3c24.tar.gz bcm5719-llvm-407584c433540afee8c4a687a08b4f3c50ae3c24.zip |
Fix linkage error on ProgramPoint's dump method.
Currently, ProgramPoint::dump calls the out-of-line function ProgramPoint::print. This causes
libraries which include ProgramPoint.h to become dependent on libclangAnalysis, which in turn
causes missing symbol link error when building with -DBUILD_SHARED_LIBS=ON -DLLVM_ENABLE_MODULES=ON.
The breakage was introduced in r343160.
This patch fixes the issues by moving ProgramPoint::dump's declaration out of line.
llvm-svn: 343420
Diffstat (limited to 'clang/lib/Analysis/ProgramPoint.cpp')
-rw-r--r-- | clang/lib/Analysis/ProgramPoint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Analysis/ProgramPoint.cpp b/clang/lib/Analysis/ProgramPoint.cpp index 9a04cb4152a..2d016cb1335 100644 --- a/clang/lib/Analysis/ProgramPoint.cpp +++ b/clang/lib/Analysis/ProgramPoint.cpp @@ -43,6 +43,10 @@ ProgramPoint ProgramPoint::getProgramPoint(const Stmt *S, ProgramPoint::Kind K, } } +LLVM_DUMP_METHOD void ProgramPoint::dump() const { + return print(/*CR=*/"\n", llvm::errs()); +} + static void printLocation(raw_ostream &Out, SourceLocation SLoc, const SourceManager &SM, StringRef CR, |