diff options
author | Nico Weber <nicolasweber@gmx.de> | 2016-03-04 21:59:42 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2016-03-04 21:59:42 +0000 |
commit | 381ec2afbfdcdc42e3400f5370f9ce5202837948 (patch) | |
tree | 6eccfaf23279cae3db2cd36c7cc299a46141085e /clang/lib/Driver/Driver.cpp | |
parent | d405f4721c4c0d93699baa13f3ff3cf0bc460253 (diff) | |
download | bcm5719-llvm-381ec2afbfdcdc42e3400f5370f9ce5202837948.tar.gz bcm5719-llvm-381ec2afbfdcdc42e3400f5370f9ce5202837948.zip |
clang-cl: Enable PCH flags by default.
Now that pragma comment and pragma detect_mismatch are implemented, this might
just work.
Some pragmas aren't serialized yet (from the top of my head: code_seg, bss_seg,
data_seg, const_seg, init_seg, section, vtordisp), but these are as far as I
know usually pushed and popped within the header and usually don't leak out.
If it turns out the current PCH support isn't good enough yet, we can turn it
off again.
llvm-svn: 262749
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index f8d6fc7770a..75dcfc96cd8 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1503,14 +1503,6 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args, Args.eraseArg(options::OPT__SLASH_Yu); YcArg = YuArg = nullptr; } - // FIXME: For now, only enable pch support if an internal flag is passed too. - // Remove this once pch support has stabilitzed. - if (!Args.hasArg(options::OPT__SLASH_internal_enable_pch)) { - Args.eraseArg(options::OPT__SLASH_Fp); - Args.eraseArg(options::OPT__SLASH_Yc); - Args.eraseArg(options::OPT__SLASH_Yu); - YcArg = YuArg = nullptr; - } // Construct the actions to perform. ActionList LinkerInputs; |