Implement support for the case when a reference to a addr-of-bb
authorChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 20:39:00 +0000 (20:39 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 20:39:00 +0000 (20:39 +0000)
commit9cc0da9c29302e9463a6f31ba705c8e1b6f4cea1
treeaa37edad2cd662e312e33b4a6be5c2eef99b14e1
parent034721eb6a1787b3d5ebf760de067cb622555bae
Implement support for the case when a reference to a addr-of-bb
label is generated, but then the block is deleted.  Since the
value is undefined, we just emit the label right after the entry
label of the function.  It might matter that the label is in the
same section as the function was afterall.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98579 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineModuleInfo.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/MachineModuleInfo.cpp
test/CodeGen/Generic/addr-label.ll [new file with mode: 0644]
test/CodeGen/X86/crash.ll