1
0
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:
Chris Lattner 2010-03-05 18:55:36 +00:00
parent 789121d6e2
commit e1452aba94
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}

View 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