summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-07-05 17:12:11 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-07-05 17:12:11 +0000
commit22f5b9f124d2a606d27bfa8d5b3049e88dc3df21 (patch)
treeae758c9aefb1c1a35752d27440187c78ae87083e /clang/lib/Frontend/CompilerInvocation.cpp
parent4fe321d1ceee3e3ae49d49d703a9f67284357e72 (diff)
downloadbcm5719-llvm-22f5b9f124d2a606d27bfa8d5b3049e88dc3df21.tar.gz
bcm5719-llvm-22f5b9f124d2a606d27bfa8d5b3049e88dc3df21.zip
Fixed redefinition warnings with LLVM_ENABLE_MODULES
Summary: It seems we both have the HAVE_LIBCOMPRESSION define in the config header and in the source files definitions of some files. This causes that the Config.h header emits the following warning when we compile the Host module: ``` In file included from <module-includes>:21: In file included from /Users/teemperor/llvm/llvm/tools/lldb/include/lldb/Host/MainLoop.h:13: tools/lldb/include/lldb/Host/Config.h:33:9: warning: 'HAVE_LIBCOMPRESSION' macro redefined [-Wmacro-redefined] ^ <command line>:1:9: note: previous definition is here ^ ``` It's not really clear why the define is in both places (the commit message just says it fixes some unspecified bug), but we can easily work around this by just guarding our define in Config.h. Reviewers: aprantl Reviewed By: aprantl Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D48977 llvm-svn: 336377
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud