aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-01 23:44:04 +0000
committerChris Lattner <sabre@nondot.org>2009-08-01 23:44:04 +0000
commitcc3f15c9877f51054369eb27756ec7711826796e (patch)
tree333ab1ce55897b4ec464943d456f35b5a4e7f968 /lib
parentea620dfe1d2cc89ee574c442098663920b5fbe70 (diff)
downloadexternal_llvm-cc3f15c9877f51054369eb27756ec7711826796e.zip
external_llvm-cc3f15c9877f51054369eb27756ec7711826796e.tar.gz
external_llvm-cc3f15c9877f51054369eb27756ec7711826796e.tar.bz2
give alpha its readonly section. This optimizes alpha, and prevents a
testsuite regression with a coming patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Alpha/AlphaISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp
index 001723a2..73fab21 100644
--- a/lib/Target/Alpha/AlphaISelLowering.cpp
+++ b/lib/Target/Alpha/AlphaISelLowering.cpp
@@ -40,6 +40,8 @@ public:
SectionKind::get(SectionKind::Text));
DataSection = getOrCreateSection("_data", true,
SectionKind::get(SectionKind::DataRel));
+ ReadOnlySection = getOrCreateSection("_rodata", true,
+ SectionKind::get(SectionKind::ReadOnly));
}
};
}