[CSKY][NFC] Fix the compiling error of CSKYAsmPrinter.cpp
authorZi Xuan Wu (Zeson) <zixuan.wu@linux.alibaba.com>
Mon, 28 Nov 2022 05:47:26 +0000 (13:47 +0800)
committerZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Mon, 28 Nov 2022 05:49:11 +0000 (13:49 +0800)
emitValueToAlignment API changes the interface to use Align object to
wrap integer.

llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp

index 24a4212..49e4b1f 100644 (file)
@@ -105,7 +105,7 @@ void CSKYAsmPrinter::emitCustomConstantPool(const MachineInstr *MI) {
 
   // If this is the first entry of the pool, mark it.
   if (!InConstantPool) {
-    OutStreamer->emitValueToAlignment(4);
+    OutStreamer->emitValueToAlignment(Align(4));
     InConstantPool = true;
   }