Print jump tables before exception tables.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Mar 2015 18:29:12 +0000 (18:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Mar 2015 18:29:12 +0000 (18:29 +0000)
commita60017902c35a802d382a5ce4803f25f1aba4cd5
tree343ab36529a80091ea4b87d73bd9625fc15b7ad6
parentef142e407a7b014df0193c869e65532aa627aff6
Print jump tables before exception tables.

In the case where just tables are part of the function section, this produces
more readable assembly by avoiding switching to the eh section and back
to .text.

This would also break with non unique section names, as trying to switch to
a unique section actually creates a new one.

llvm-svn: 231677
llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfException.h
llvm/test/CodeGen/X86/global-sections.ll