Add -funique-section-names and -fno-unique-section-names options.
For now -funique-section-names is the default, so no change in default behavior. The total .o size in a build of llvm and clang goes from 241687775 to 230649031 bytes if -fno-unique-section-names is used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230031 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Driver/Options.td 8 additions, 0 deletionsinclude/clang/Driver/Options.td
- include/clang/Frontend/CodeGenOptions.def 1 addition, 0 deletionsinclude/clang/Frontend/CodeGenOptions.def
- lib/CodeGen/BackendUtil.cpp 1 addition, 0 deletionslib/CodeGen/BackendUtil.cpp
- lib/Driver/Tools.cpp 4 additions, 0 deletionslib/Driver/Tools.cpp
- lib/Frontend/CompilerInvocation.cpp 3 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- test/CodeGen/funique-sections.c 13 additions, 0 deletionstest/CodeGen/funique-sections.c
- test/Driver/function-sections.c 12 additions, 0 deletionstest/Driver/function-sections.c
Loading
Please register or sign in to comment