summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-08 01:25:25 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-08 01:25:25 +0000
commitd918477ac388430c9ca49c3d158092c886822cab (patch)
tree1a9196f20c26d893bd851f5b18488b1f5f96862f /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parent13a1d969633776d7724d4ed98fbe9164dea72474 (diff)
downloadbcm5719-llvm-d918477ac388430c9ca49c3d158092c886822cab.tar.gz
bcm5719-llvm-d918477ac388430c9ca49c3d158092c886822cab.zip
For Darwin, put constant data into .const, .const_data, .literal{4|8|16}
sections. llvm-svn: 35017
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index bdda9909f4a..01c78b71efa 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
@@ -57,6 +57,9 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM)
JumpTableDataSection = ".const";
GlobalDirective = "\t.globl\t";
CStringSection = "\t.cstring";
+ FourByteConstantSection = "\t.literal4\n";
+ EightByteConstantSection = "\t.literal8\n";
+ ReadOnlySection = "\t.const\n";
if (TM.getRelocationModel() == Reloc::Static) {
StaticCtorsSection = ".constructor";
StaticDtorsSection = ".destructor";
OpenPOWER on IntegriCloud