mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
fix bss section printing for cell, patch by Kalle Raiskila!
llvm-svn: 97814
This commit is contained in:
parent
789121d6e2
commit
e1452aba94
@ -34,5 +34,8 @@ SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, const StringRef &TT) {
|
||||
// Exception handling is not supported on CellSPU (think about it: you only
|
||||
// have 256K for code+data. Would you support exception handling?)
|
||||
ExceptionsType = ExceptionHandling::None;
|
||||
|
||||
// SPU assembly requires ".section" before ".bss"
|
||||
UsesELFSectionDirectiveForBSS = true;
|
||||
}
|
||||
|
||||
|
5
test/CodeGen/CellSPU/bss.ll
Normal file
5
test/CodeGen/CellSPU/bss.ll
Normal file
@ -0,0 +1,5 @@
|
||||
; RUN: llc < %s -march=cellspu > %t1.s
|
||||
; RUN: grep "\.section" %t1.s | grep "\.bss" | count 1
|
||||
|
||||
@bssVar = global i32 zeroinitializer
|
||||
|
Loading…
Reference in New Issue
Block a user