aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha/AlphaISelLowering.cpp
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
commit0da3f4f742bd70e4f12d2f16f766f978417683f1 (patch)
tree333ab1ce55897b4ec464943d456f35b5a4e7f968 /lib/Target/Alpha/AlphaISelLowering.cpp
parent528c0d26a59b2f3d66eabdd90e64b211ab26cc86 (diff)
downloadexternal_llvm-0da3f4f742bd70e4f12d2f16f766f978417683f1.zip
external_llvm-0da3f4f742bd70e4f12d2f16f766f978417683f1.tar.gz
external_llvm-0da3f4f742bd70e4f12d2f16f766f978417683f1.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/Target/Alpha/AlphaISelLowering.cpp')
-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));
}
};
}