Emit DeferredDeclsToEmit in a DFS order.
Currently we emit DeferredDeclsToEmit in reverse order. This patch changes that. The advantages of the change are that * The output order is a bit closer to the source order. The change to test/CodeGenCXX/pod-member-memcpys.cpp is a good example. * If we decide to deffer more, it will not cause as large changes in the estcases as it would without this patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226751 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CodeGenModule.cpp 26 additions, 14 deletionslib/CodeGen/CodeGenModule.cpp
- test/CXX/except/except.spec/p14-ir.cpp 4 additions, 4 deletionstest/CXX/except/except.spec/p14-ir.cpp
- test/CXX/special/class.copy/p15-inclass.cpp 5 additions, 5 deletionstest/CXX/special/class.copy/p15-inclass.cpp
- test/CodeGen/2009-01-05-BlockInlining.c 2 additions, 2 deletionstest/CodeGen/2009-01-05-BlockInlining.c
- test/CodeGen/inline.c 3 additions, 3 deletionstest/CodeGen/inline.c
- test/CodeGenCXX/catch-undef-behavior.cpp 2 additions, 2 deletionstest/CodeGenCXX/catch-undef-behavior.cpp
- test/CodeGenCXX/constructor-init.cpp 11 additions, 9 deletionstest/CodeGenCXX/constructor-init.cpp
- test/CodeGenCXX/constructor-template.cpp 2 additions, 2 deletionstest/CodeGenCXX/constructor-template.cpp
- test/CodeGenCXX/copy-constructor-synthesis.cpp 12 additions, 12 deletionstest/CodeGenCXX/copy-constructor-synthesis.cpp
- test/CodeGenCXX/cxx1y-init-captures.cpp 4 additions, 3 deletionstest/CodeGenCXX/cxx1y-init-captures.cpp
- test/CodeGenCXX/debug-info-template-member.cpp 1 addition, 1 deletiontest/CodeGenCXX/debug-info-template-member.cpp
- test/CodeGenCXX/debug-lambda-expressions.cpp 16 additions, 17 deletionstest/CodeGenCXX/debug-lambda-expressions.cpp
- test/CodeGenCXX/destructors.cpp 8 additions, 9 deletionstest/CodeGenCXX/destructors.cpp
- test/CodeGenCXX/inheriting-constructor.cpp 3 additions, 3 deletionstest/CodeGenCXX/inheriting-constructor.cpp
- test/CodeGenCXX/key-function-vtable.cpp 2 additions, 2 deletionstest/CodeGenCXX/key-function-vtable.cpp
- test/CodeGenCXX/lambda-expressions-nested-linkage.cpp 8 additions, 5 deletionstest/CodeGenCXX/lambda-expressions-nested-linkage.cpp
- test/CodeGenCXX/lambda-expressions.cpp 9 additions, 9 deletionstest/CodeGenCXX/lambda-expressions.cpp
- test/CodeGenCXX/mangle-abi-examples.cpp 1 addition, 1 deletiontest/CodeGenCXX/mangle-abi-examples.cpp
- test/CodeGenCXX/mangle-lambdas.cpp 36 additions, 31 deletionstest/CodeGenCXX/mangle-lambdas.cpp
- test/CodeGenCXX/mangle-local-class-vtables.cpp 14 additions, 14 deletionstest/CodeGenCXX/mangle-local-class-vtables.cpp
Loading
Please register or sign in to comment