@@ -254,7 +254,7 @@ class MCAsmStreamer final : public MCStreamer {
254
254
void emitFill (const MCExpr &NumValues, int64_t Size, int64_t Expr,
255
255
SMLoc Loc = SMLoc()) override ;
256
256
257
- void emitAlignmentDirective (unsigned ByteAlignment,
257
+ void emitAlignmentDirective (uint64_t ByteAlignment,
258
258
std::optional<int64_t > Value, unsigned ValueSize,
259
259
unsigned MaxBytesToEmit);
260
260
@@ -1478,23 +1478,23 @@ void MCAsmStreamer::emitFill(const MCExpr &NumValues, int64_t Size,
1478
1478
EmitEOL ();
1479
1479
}
1480
1480
1481
- void MCAsmStreamer::emitAlignmentDirective (unsigned ByteAlignment,
1481
+ void MCAsmStreamer::emitAlignmentDirective (uint64_t ByteAlignment,
1482
1482
std::optional<int64_t > Value,
1483
1483
unsigned ValueSize,
1484
1484
unsigned MaxBytesToEmit) {
1485
1485
if (MAI->useDotAlignForAlignment ()) {
1486
- if (!isPowerOf2_32 (ByteAlignment))
1486
+ if (!isPowerOf2_64 (ByteAlignment))
1487
1487
report_fatal_error (" Only power-of-two alignments are supported "
1488
1488
" with .align." );
1489
1489
OS << " \t .align\t " ;
1490
- OS << Log2_32 (ByteAlignment);
1490
+ OS << Log2_64 (ByteAlignment);
1491
1491
EmitEOL ();
1492
1492
return ;
1493
1493
}
1494
1494
1495
1495
// Some assemblers don't support non-power of two alignments, so we always
1496
1496
// emit alignments as a power of two if possible.
1497
- if (isPowerOf2_32 (ByteAlignment)) {
1497
+ if (isPowerOf2_64 (ByteAlignment)) {
1498
1498
switch (ValueSize) {
1499
1499
default :
1500
1500
llvm_unreachable (" Invalid size for machine code value!" );
@@ -1511,7 +1511,7 @@ void MCAsmStreamer::emitAlignmentDirective(unsigned ByteAlignment,
1511
1511
llvm_unreachable (" Unsupported alignment size!" );
1512
1512
}
1513
1513
1514
- OS << Log2_32 (ByteAlignment);
1514
+ OS << Log2_64 (ByteAlignment);
1515
1515
1516
1516
if (Value.has_value () || MaxBytesToEmit) {
1517
1517
if (Value.has_value ()) {
0 commit comments