-
- Downloads
Restructure the propagation of -fPIC/-fPIE.
The PIC and PIE levels are not independent. In fact, if PIE is defined it is always the same as PIC. This is clear in the driver where ParsePICArgs returns a PIC level and a IsPIE boolean. Unfortunately that is currently lost and we pass two redundant levels down the pipeline. This patch keeps a bool and a PIC level all the way down to codegen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273566 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/LangOptions.def 1 addition, 1 deletioninclude/clang/Basic/LangOptions.def
- include/clang/Driver/CC1Options.td 2 additions, 2 deletionsinclude/clang/Driver/CC1Options.td
- lib/CodeGen/CGObjCGNU.cpp 1 addition, 1 deletionlib/CodeGen/CGObjCGNU.cpp
- lib/CodeGen/CodeGenModule.cpp 2 additions, 5 deletionslib/CodeGen/CodeGenModule.cpp
- lib/Driver/Tools.cpp 2 additions, 4 deletionslib/Driver/Tools.cpp
- lib/Frontend/CompilerInvocation.cpp 2 additions, 2 deletionslib/Frontend/CompilerInvocation.cpp
- lib/Frontend/InitPreprocessor.cpp 4 additions, 4 deletionslib/Frontend/InitPreprocessor.cpp
- test/Driver/fsanitize.c 1 addition, 1 deletiontest/Driver/fsanitize.c
- test/Driver/pic.c 7 additions, 7 deletionstest/Driver/pic.c
- test/Driver/ps4-pic.c 2 additions, 2 deletionstest/Driver/ps4-pic.c
- test/Modules/explicit-build-flags.cpp 1 addition, 1 deletiontest/Modules/explicit-build-flags.cpp
- test/Preprocessor/pic.c 6 additions, 6 deletionstest/Preprocessor/pic.c
Loading
Please register or sign in to comment