Centralize handling of the eh_begin and eh_end labels.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Feb 2015 18:18:39 +0000 (18:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Feb 2015 18:18:39 +0000 (18:18 +0000)
commit629cdbae948a101e6e20784e6d0e86929030462e
tree895a7612aadcd8bed73c0c3dcee31c2eaa734b93
parentaf0ff1093ec4042c6abacf67ad30c6543887e674
Centralize handling of the eh_begin and eh_end labels.

This removes a bit of duplicated code and more importantly, remembers the
labels so that they don't need to be looked up by name.

This in turn allows for any name to be used and avoids a crash if the name
we wanted was already taken.

llvm-svn: 230772
13 files changed:
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/include/llvm/MC/MCContext.h
llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
llvm/lib/CodeGen/AsmPrinter/EHStreamer.cpp
llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp
llvm/lib/MC/MCContext.cpp
llvm/test/CodeGen/Mips/mips16ex.ll
llvm/test/CodeGen/X86/eh-label.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/global-sections.ll
llvm/test/CodeGen/X86/patchpoint-invoke.ll
llvm/test/CodeGen/XCore/exception.ll