]> granicus.if.org Git - clang/commit
Remove compile time PreserveName in favor of a runtime cc1 -discard-value-names option
authorMehdi Amini <mehdi.amini@apple.com>
Sun, 13 Mar 2016 21:05:23 +0000 (21:05 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sun, 13 Mar 2016 21:05:23 +0000 (21:05 +0000)
commit5fa123a0b91f210f0db2647ca9975279582a984a
tree216e81a670d752475a4fe2ddd45deb83c56ce66b
parent309b96c687b008fd6c9c4824bfd9f35c5e777bec
Remove compile time PreserveName in favor of a runtime cc1 -discard-value-names option

Summary:
This flag is enabled by default in the driver when NDEBUG is set. It
is forwarded on the LLVMContext to discard all value names (but
GlobalValue) for performance purpose.

This an improved version of D18024

Reviewers: echristo, chandlerc

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D18127

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263394 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/clang/Driver/CC1Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CGBuilder.h
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/ModuleBuilder.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/mips-byval-arg.c
test/CodeGen/mips-vector-arg.c
test/CodeGen/mips-zero-sized-struct.c
test/CodeGen/mips64-class-return.cpp
test/CodeGen/mips64-padding-arg.c
test/CodeGenCXX/debug-info-class.cpp
test/CodeGenCXX/discard-name-values.cpp [new file with mode: 0644]
test/CodeGenCXX/stack-reuse.cpp