[PATCH] D35338: Add the -fdestroy-globals flag
Ian Tessier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 12 17:07:14 PDT 2017
itessier created this revision.
The -fdestroy-globals flag can be used to disable global variable destructor
registration. It is intended to be used with embedded code that never exits.
Disabling registration allows the linker to garbage collect unused destructors
and vtables.
https://reviews.llvm.org/D35338
Files:
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CGDeclCXX.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/fdestroy-globals.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35338.106351.patch
Type: text/x-patch
Size: 5146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170713/62019266/attachment.bin>
More information about the cfe-commits
mailing list