]> granicus.if.org Git - clang/commit
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)
commitbdf4477271fb76aee983620359b32b0abf90c77f
tree5fbed45026617c3b3dfd3b54244625c7a2f33f67
parent0d63878a31584a1a7e9760574bcff31e41906a93
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343420 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/ProgramPoint.h
lib/Analysis/ProgramPoint.cpp