Use the MachineBasicBlock symbol for a callbr target
authorBill Wendling <isanbard@gmail.com>
Fri, 19 Jul 2019 01:10:28 +0000 (01:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 19 Jul 2019 01:10:28 +0000 (01:10 +0000)
commitccbffefccaff42b0d094c9ef0f49fc3e8c8456ea
treee9ce303fe2a9e03c8fef146f356c7bc21d4420bc
parentd3607756dda65ce4f705462e48ed73a4afdd073a
Use the MachineBasicBlock symbol for a callbr target

Summary:
Inline asm doesn't use labels when compiled as an object file. Therefore, we
shouldn't create one for the (potential) callbr destination. Instead, use the
symbol for the MachineBasicBlock.

Reviewers: nickdesaulniers, craig.topper

Reviewed By: nickdesaulniers

Subscribers: xbolva00, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64888

llvm-svn: 366523
llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
llvm/test/CodeGen/X86/callbr-asm-obj-file.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/callbr-asm.ll