]> granicus.if.org Git - clang/commit
Keep the old function order in CodeGenModule::applyReplacements.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 12 Nov 2013 04:53:19 +0000 (04:53 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 12 Nov 2013 04:53:19 +0000 (04:53 +0000)
commit081c215cca971b6b6d7988e9f48e4793ceb374dc
tree84b5fb2632411229c1399fd518c8c8dc0a42c4b5
parent669496ba9fa753a238e3f0018b7a6235ec672727
Keep the old function order in CodeGenModule::applyReplacements.

The original decls are created when used. The replacements are created at the
end of the TU in reverse order.

This makes the original order far better for testing. This is particularly
important since the replacement logic could be used even when
-mconstructor-aliases is not used, but that would make many tests hard to read.

This is a fixed version of r194357 which handles replacing a destructor with
another which is an alias to a third one.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194452 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenCXX/destructors.cpp