]> granicus.if.org Git - clang/commit
Add -funique-section-names and -fno-unique-section-names options.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 20 Feb 2015 18:08:57 +0000 (18:08 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 20 Feb 2015 18:08:57 +0000 (18:08 +0000)
commitacdbdefe39a6f67b800e096153083d5ec4318174
tree5257ce4526ef1c36e6606b285b2418af87acf596
parentd830233bd6443bdd8f19ac36d60b6eda25ea9846
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
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/BackendUtil.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/funique-sections.c [new file with mode: 0644]
test/Driver/function-sections.c