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)
commit150233c378a7d6d3838f2b2907d5a706da8911ac
tree2b800656f0822b1c3630a268d3f0291a6bf54fa6
parent4ed780a81c9dfaefb7fa010406d4a32a51dd9193
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230772 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/CodeGen/AsmPrinter.h
include/llvm/MC/MCContext.h
lib/CodeGen/AsmPrinter/ARMException.cpp
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
lib/CodeGen/AsmPrinter/EHStreamer.cpp
lib/CodeGen/AsmPrinter/Win64Exception.cpp
lib/MC/MCContext.cpp
test/CodeGen/Mips/mips16ex.ll
test/CodeGen/X86/eh-label.ll [new file with mode: 0644]
test/CodeGen/X86/global-sections.ll
test/CodeGen/X86/patchpoint-invoke.ll
test/CodeGen/XCore/exception.ll