summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-08 01:07:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-08 01:07:07 +0000
commit13a1d969633776d7724d4ed98fbe9164dea72474 (patch)
tree616e4caccd5ae172911fdd9154187a47cbb3dbaa /llvm/lib/Target/X86/X86TargetAsmInfo.cpp
parent58aeb9c4443313d589ef172839ecf7bec6b599c4 (diff)
downloadbcm5719-llvm-13a1d969633776d7724d4ed98fbe9164dea72474.tar.gz
bcm5719-llvm-13a1d969633776d7724d4ed98fbe9164dea72474.zip
Put constant data to .const, .const_data, .literal{4|8|16} sections.
llvm-svn: 35016
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetAsmInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
index c66862aec62..74977dfa5bf 100644
--- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -56,6 +56,7 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
EightByteConstantSection = "\t.literal8\n";
if (Subtarget->is64Bit())
SixteenByteConstantSection = "\t.literal16\n";
+ ReadOnlySection = "\t.const\n";
LCOMMDirective = "\t.lcomm\t";
COMMDirectiveTakesAlignment = false;
HasDotTypeDotSizeDirective = false;
@@ -103,6 +104,7 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
// bool HasDotLoc; // Defaults to false.
// HasDotFile - True if target asm supports .file directives.
// bool HasDotFile; // Defaults to false.
+ ReadOnlySection = "\t.section\t.rodata\n";
PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t";
DwarfRequiresFrameSection = false;
OpenPOWER on IntegriCloud