Fix linkage error on ProgramPoint's dump method.
authorEric Fiselier <eric@efcs.ca>
Sun, 30 Sep 2018 18:05:39 +0000 (18:05 +0000)
committerEric Fiselier <eric@efcs.ca>
Sun, 30 Sep 2018 18:05:39 +0000 (18:05 +0000)
commit407584c433540afee8c4a687a08b4f3c50ae3c24
treef33f05a654dee43ada45a64de8a1786156c79045
parent99ad2a5723ce09f2264b91f6e45e2e7428d82e7d
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
clang/include/clang/Analysis/ProgramPoint.h
clang/lib/Analysis/ProgramPoint.cpp