[PATCH] D35545: [AArch64, COFF] Interpret .align as power of two for COFF as well

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 13:16:27 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL308517: [AArch64, COFF] Interpret .align as power of two for COFF as well (authored by mstorsjo).

Changed prior to commit:
  https://reviews.llvm.org/D35545?vs=107274&id=107360#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35545

Files:
  llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
  llvm/trunk/test/MC/AArch64/coff-align.s


Index: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
@@ -105,4 +105,5 @@
   CommentString = ";";
   PrivateGlobalPrefix = ".L";
   PrivateLabelPrefix = ".L";
+  AlignmentIsInBytes = false;
 }
Index: llvm/trunk/test/MC/AArch64/coff-align.s
===================================================================
--- llvm/trunk/test/MC/AArch64/coff-align.s
+++ llvm/trunk/test/MC/AArch64/coff-align.s
@@ -0,0 +1,7 @@
+// RUN: llvm-mc -filetype=obj -triple aarch64-windows-gnu %s | llvm-readobj -s -sd | FileCheck %s
+    .text
+    .align 5
+f0:
+    ret
+
+// CHECK: IMAGE_SCN_ALIGN_32BYTES


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35545.107360.patch
Type: text/x-patch
Size: 808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170719/6e14af81/attachment.bin>


More information about the llvm-commits mailing list