[PATCH] D130391: revert "[CodeGen] Require a name for a block addr target"
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 12:33:17 PDT 2022
nickdesaulniers created this revision.
nickdesaulniers added reviewers: void, craig.topper, arsenm.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Reverts commit 79176a2542d03107b90613c84f18ccba41ad8fa8.
After D130316 <https://reviews.llvm.org/D130316>, this is no longer necessary.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130391
Files:
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Index: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
===================================================================
--- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -229,9 +229,7 @@
BBCallbacks.back().setMap(this);
Entry.Index = BBCallbacks.size() - 1;
Entry.Fn = BB->getParent();
- MCSymbol *Sym = BB->hasAddressTaken() ? Context.createNamedTempSymbol()
- : Context.createTempSymbol();
- Entry.Symbols.push_back(Sym);
+ Entry.Symbols.push_back(Context.createTempSymbol());
return Entry.Symbols;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130391.446944.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220722/39ce5e1e/attachment.bin>
More information about the llvm-commits
mailing list