[CSKY] Fix .bss directive compling error created by --save-temps
authorZi Xuan Wu (Zeson) <zixuan.wu@linux.alibaba.com>
Fri, 28 Oct 2022 02:26:32 +0000 (10:26 +0800)
committerZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Wed, 2 Nov 2022 06:18:35 +0000 (14:18 +0800)
commit9fbe16ee18a3e4639f0e6dadb01ab03dedbb99fb
tree3adc798a8d93a82f5bf9cc042c078f67606ecad6
parent23c665371a98c7a16765d12bf2db19b0626b7181
[CSKY] Fix .bss directive compling error created by --save-temps

.bss without symbol and num following can't be compiled in CSKY target, which is consistent to GCC behavior.
So when --save-temps generates .bss, we should UsesELFSectionDirectiveForBSS to avoid such error.
llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCAsmInfo.cpp