[PATCH] D109425: [MC] Add Subtarget for MAsmParser call to emitCodeAlignment
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 05:29:07 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb026ce9c8a81: [MC] Add Subtarget for MAsmParser call to emitCodeAlignment (authored by psmith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109425/new/
https://reviews.llvm.org/D109425
Files:
llvm/lib/MC/MCParser/MasmParser.cpp
Index: llvm/lib/MC/MCParser/MasmParser.cpp
===================================================================
--- llvm/lib/MC/MCParser/MasmParser.cpp
+++ llvm/lib/MC/MCParser/MasmParser.cpp
@@ -4772,7 +4772,8 @@
const MCSection *Section = getStreamer().getCurrentSectionOnly();
assert(Section && "must have section to emit alignment");
if (Section->UseCodeAlign()) {
- getStreamer().emitCodeAlignment(Alignment, /*MaxBytesToEmit=*/0);
+ getStreamer().emitCodeAlignment(Alignment, &getTargetParser().getSTI(),
+ /*MaxBytesToEmit=*/0);
} else {
// FIXME: Target specific behavior about how the "extra" bytes are filled.
getStreamer().emitValueToAlignment(Alignment, /*Value=*/0,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109425.371320.patch
Type: text/x-patch
Size: 759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210908/266f22a5/attachment-0001.bin>
More information about the llvm-commits
mailing list