diff options
| author | Luboš Luňák <l.lunak@centrum.cz> | 2019-11-03 21:15:03 +0100 |
|---|---|---|
| committer | Luboš Luňák <l.lunak@centrum.cz> | 2020-01-15 00:01:08 +0100 |
| commit | cbc9d22e49b434b6ceb2eb94b67079d02e0a7b74 (patch) | |
| tree | 4ca09fdd49b20ff9b144dc1a4229cb54396de63f /clang/test/Modules/Inputs/codegen-flags | |
| parent | b5b2cf7af47f1ca04635dae7b787c8a81d5af4c9 (diff) | |
| download | bcm5719-llvm-cbc9d22e49b434b6ceb2eb94b67079d02e0a7b74.tar.gz bcm5719-llvm-cbc9d22e49b434b6ceb2eb94b67079d02e0a7b74.zip | |
make -fmodules-codegen and -fmodules-debuginfo work also with PCHs
Allow to build PCH's (with -building-pch-with-obj and the extra .o file)
with -fmodules-codegen -fmodules-debuginfo to allow emitting shared code
into the extra .o file, similarly to how it works with modules. A bit of
a misnomer, but the underlying functionality is the same. This saves up
to 20% of build time here.
Differential Revision: https://reviews.llvm.org/D69778
Diffstat (limited to 'clang/test/Modules/Inputs/codegen-flags')
| -rw-r--r-- | clang/test/Modules/Inputs/codegen-flags/foo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/codegen-flags/foo.h b/clang/test/Modules/Inputs/codegen-flags/foo.h index 7b9c1cd8e08..74cfab1771f 100644 --- a/clang/test/Modules/Inputs/codegen-flags/foo.h +++ b/clang/test/Modules/Inputs/codegen-flags/foo.h @@ -1,4 +1,7 @@ +#ifndef FOO_H +#define FOO_H struct foo { }; inline void f1() { } +#endif |

