so that it doesn't break them when the code generator starts using it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96966
91177308-0d34-0410-b5e6-
96231b3b80d8
void MCAsmStreamer::EmitCodeAlignment(unsigned ByteAlignment,
unsigned MaxBytesToEmit) {
- // FIXME: a hack for now to only work for x86 using the 0x90 nop opcode.
- EmitValueToAlignment(ByteAlignment, 0x90, 1, MaxBytesToEmit);
+ // Emit with a text fill value.
+ EmitValueToAlignment(ByteAlignment, MAI.getTextAlignFillValue(),
+ 1, MaxBytesToEmit);
}
void MCAsmStreamer::EmitValueToOffset(const MCExpr *Offset,