]> granicus.if.org Git - llvm/commit
[CodeGen] Require a name for a block addr target
authorBill Wendling <isanbard@gmail.com>
Fri, 9 Aug 2019 20:18:30 +0000 (20:18 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 9 Aug 2019 20:18:30 +0000 (20:18 +0000)
commit9c0082921f09615db69e402a355e18d32340a771
tree9b13113068176e63c905db0982ef2f43e8f54c1e
parent0cd6fdb03259dca095776dd98095e26b479a3876
[CodeGen] Require a name for a block addr target

Summary:
A block address may be used in inline assembly. In which case it
requires a name so that the asm parser has something to parse. Creating
a name for every block address is a large hammer, but is necessary
because at the point when a temp symbol is created we don't necessarily
know if it's used in inline asm. This ensures that it exists regardless.

Reviewers: nickdesaulniers, craig.topper

Subscribers: nathanchance, javed.absar, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368478 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineModuleInfo.cpp
test/CodeGen/AArch64/callbr-asm-obj-file.ll [new file with mode: 0644]
test/CodeGen/X86/callbr-asm-obj-file.ll [new file with mode: 0644]