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)
commit6b07a1c6ee50dcf4d52a4a314b4774347f9b22c0
tree4cc8c21d84f5ad56ef4c8addf953a1cab14f5b5b
parent5c56fb55b0857181d7bb89c40cce9d87c0942c00
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.

llvm-svn: 230031
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/CodeGenOptions.def
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/funique-sections.c [new file with mode: 0644]
clang/test/Driver/function-sections.c