[PGO][PGSO] Fix -DBUILD_SHARED_LIBS=on builds after D69580/llvmorg-10-init-8797-g0d98...
authorFangrui Song <maskray@google.com>
Thu, 31 Oct 2019 20:58:52 +0000 (13:58 -0700)
committerFangrui Song <maskray@google.com>
Thu, 31 Oct 2019 21:02:29 +0000 (14:02 -0700)
commit44d0c3d94775be2ec1947426a8483cd135d51625
tree27bfa58887ca2999c84abe193295d9c87475cfab
parentcd751bcd5206b9fb3d9a46802294ffcbfb80661f
[PGO][PGSO] Fix -DBUILD_SHARED_LIBS=on builds after D69580/llvmorg-10-init-8797-g0d987e411ac

Move TargetLoweringBase::isSuitableForJumpTable from
llvm/CodeGen/TargetLowering.h to .cpp, to avoid the undefined reference
from all LLVM${Target}ISelLowering.cpp.

Another fix is to add a dependency on TransformUtils to all
lib/Target/$Target/LLVMBuild.txt, but that is too disruptive.
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/TargetLoweringBase.cpp