CellSPU: Ensure that C strings are always put in the .rodata section
authorScott Michel <scottm@aero.org>
Fri, 7 Nov 2008 11:06:44 +0000 (11:06 +0000)
committerScott Michel <scottm@aero.org>
Fri, 7 Nov 2008 11:06:44 +0000 (11:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58839 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CellSPU/SPUTargetAsmInfo.cpp

index 9f62a28c0d0ffbde1839476b167da7c33d609a29..1b9551ab6318b6b2f56783ec2e28ef4cd6e19dab 100644 (file)
@@ -24,6 +24,7 @@ SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo(const SPUTargetMachine &TM) :
   CommentString = "#";
   GlobalPrefix = "";
   PrivateGlobalPrefix = ".L";
+  CStringSection = ".rodata";
 }
 
 /// PreferredEHDataFormat - This hook allows the target to select data