[clang][cli] NFC: Add PIE parsing for precompiled input and IR
authorJan Svoboda <jan_svoboda@apple.com>
Fri, 15 Jan 2021 14:42:29 +0000 (15:42 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Fri, 15 Jan 2021 15:41:34 +0000 (16:41 +0100)
commit383262933045e1c138362105be4ee4d1b62ab4cc
treebdd0fc21c10d9360c787ffe0ce247ec5e9e34100
parentbf1aa5db5c76d187df8dfef28bc5b8889fb53c4b
[clang][cli] NFC: Add PIE parsing for precompiled input and IR

This patch effectively reverts a small part of D83979.

When we stop parsing `LangOpts` unconditionally in `parseSimpleArgs` (above the diff) and move them back to `ParseLangArgs` (called in `else` branch) in D94682, `LangOpts.PIE` would never get parsed in this `if` branch. This patch ensures this doesn't happen.

Right now, this causes `LangOpts.PIE` to be parsed twice, but that will be immediately corrected in D94682.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D94679
clang/lib/Frontend/CompilerInvocation.cpp