diff options
author | Fangrui Song <maskray@google.com> | 2018-12-01 01:43:05 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-12-01 01:43:05 +0000 |
commit | 2f553207419ae621452200b1a6ff70eef66b4f9b (patch) | |
tree | 6601324f6f6a0c7ae1ea882053eaed10ac04e7d1 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | fbb925462e02fbf280e510b079e46745c2d357e0 (diff) | |
download | llvm-2f553207419ae621452200b1a6ff70eef66b4f9b.zip llvm-2f553207419ae621452200b1a6ff70eef66b4f9b.tar.gz llvm-2f553207419ae621452200b1a6ff70eef66b4f9b.tar.bz2 |
[Basic] Move DiagnosticsEngine::dump from .h to .cpp
The two LLVM_DUMP_METHOD methods have a undefined reference on clang::DiagnosticsEngine::DiagStateMap::dump.
tools/clang/tools/extra/clangd/benchmarks/IndexBenchmark links in
clangDaemon but does not link in clangBasic explicitly, which causes a
linker error "undefined symbol" in !NDEBUG + -DBUILD_SHARED_LIBS=on builds.
Move LLVM_DUMP_METHOD methods to .cpp to fix IndexBenchmark. They should
be unconditionally defined as they are also used by non-dump-method #pragma clang __debug diag_mapping
llvm-svn: 348065
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions