CellSPU: Ensure that C strings are always put in the .rodata section
[oota-llvm.git] / 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