]> granicus.if.org Git - clang/commit
Keep the old function order in CodeGenModule::applyReplacements.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 10 Nov 2013 19:04:30 +0000 (19:04 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 10 Nov 2013 19:04:30 +0000 (19:04 +0000)
commit90f535f3f6d57403ce3d9177745900b2d015dcee
treecfed5398438d22ef51175c94efc63c92f49d0781
parent471b52aaab1d175ddad7c24d825dbf0582a1767e
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.

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