diff options
| author | Luboš Luňák <l.lunak@centrum.cz> | 2020-02-02 12:15:40 +0100 |
|---|---|---|
| committer | Luboš Luňák <l.lunak@centrum.cz> | 2020-04-27 21:26:13 +0200 |
| commit | 5c8c9905c2496a38a17f1b2a180601e790e45db9 (patch) | |
| tree | 8151da0d22ee2f3813538f6f01f0abe5697c68d1 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | c695ea2afa144a0235edb7a7f56684bbc93bb389 (diff) | |
make sure to not warn about unused macros from -D
If a PCH is used for compilation, SourceManager::isInMainFile()
returns true even for the "<built-in>" predefines area. Using -D
only for the TU compilation may trigger -Wunused-macros for it.
It is admitedly a bit fishy to set a macro only for a TU and not
for the PCH, but this works fine if the PCH does not use the macro
(I couldn't find a statement on this for Clang, but GCC explicitly
allows this in the docs).
Differential Revision: https://reviews.llvm.org/D73846
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
