]> granicus.if.org Git - clang/commit
Revise the implementation logic of sized deallocation: Do not automatically generate...
authorLarisse Voufo <lvoufo@google.com>
Sat, 14 Feb 2015 05:42:57 +0000 (05:42 +0000)
committerLarisse Voufo <lvoufo@google.com>
Sat, 14 Feb 2015 05:42:57 +0000 (05:42 +0000)
commit4ecf89a2f4759b96d3516f5a03389ec5cc9e78f0
tree57972bf0ff5c2e5843d2ada722a20ae261021c54
parentce39e5c4cb1a0b2d2a0d7f5d9db13e4b477358e4
Revise the implementation logic of sized deallocation: Do not automatically generate weak definitions of the sized operator delete (in terms of unsized operator delete). Instead, provide the funcitonality via a new compiler flag, -fdef-sized-delete.
The current implementation causes link-time ODR violations when the delete symbols are exported into the dynamic table.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229241 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/Options.td
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenCXX/cxx1y-sized-deallocation.cpp
test/CodeGenCXX/implicit-allocation-functions.cpp