summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2008-11-08 18:59:02 +0000
committerScott Michel <scottm@aero.org>2008-11-08 18:59:02 +0000
commita872e5af8a934f642c2ada6119babb70f073243b (patch)
tree8b03726a63282862f7d2b730484c126ec9f29efe /llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp
parent0f3937115d8289f5cea6991e35fed83c5d86a3bb (diff)
downloadbcm5719-llvm-a872e5af8a934f642c2ada6119babb70f073243b.tar.gz
bcm5719-llvm-a872e5af8a934f642c2ada6119babb70f073243b.zip
CellSPU: Bring SPU's assembly printer more in-line with current LLVM code
structure. Assembly printer now outputs the correct section for strings. llvm-svn: 58921
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp b/llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp
index 1b9551ab631..2bc0ffdb7ef 100644
--- a/llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp
+++ b/llvm/lib/Target/CellSPU/SPUTargetAsmInfo.cpp
@@ -24,7 +24,8 @@ SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo(const SPUTargetMachine &TM) :
CommentString = "#";
GlobalPrefix = "";
PrivateGlobalPrefix = ".L";
- CStringSection = ".rodata";
+ // This corresponds to what the gcc SPU compiler emits, for consistency.
+ CStringSection = ".rodata.str";
}
/// PreferredEHDataFormat - This hook allows the target to select data
OpenPOWER on IntegriCloud