We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b19d7a commit 61e493bCopy full SHA for 61e493b
llvm/lib/Target/Z80/MCTargetDesc/Z80TargetStreamer.cpp
@@ -34,8 +34,13 @@ void Z80TargetAsmStreamer::emitLabel(MCSymbol *Symbol) {
34
}
35
36
void Z80TargetAsmStreamer::emitAlign(Align Alignment) {
37
- if (auto Mask = Alignment.value() - 1)
38
- Z80GasStyle ? OS << "\t.skip\t($$ - $) and " << Mask << '\n' : OS << "\trb\t($$ - $) and " << Mask << '\n';
+ if (auto Mask = Alignment.value() - 1) {
+ if (Z80GasStyle) {
39
+ OS << "\t.balign\t" << Alignment.value() << '\n';
40
+ } else {
41
+ OS << "\trb\t($$ - $) and " << Mask << '\n';
42
+ }
43
44
45
46
void Z80TargetAsmStreamer::emitBlock(uint64_t NumBytes) {
0 commit comments