[PATCH] D138674: [Alignment][NFC] Use Align in MCStreamer::emitValueToAlignment
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 24 07:55:46 PST 2022
courbet accepted this revision.
courbet added inline comments.
This revision is now accepted and ready to land.
================
Comment at: bolt/lib/Core/BinaryEmitter.cpp:798
Streamer.switchSection(JT.Count > 0 ? HotSection : ColdSection);
- Streamer.emitValueToAlignment(JT.EntrySize);
+ Streamer.emitValueToAlignment(Align(JT.EntrySize));
}
----------------
I don;t think there is really anything guaranteeing that this is a power of 2 , but it looks like it's the case all targets upstream.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138674/new/
https://reviews.llvm.org/D138674
More information about the llvm-commits
mailing list