summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha
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
commitcc71620c866ad7b5bc7c451704e04374c68ef963 (patch)
tree88ff36dc92c23ab116e81fb7e1d0bb856c19c398 /llvm/lib/Target/Alpha
parent36741c8a29866375a4a4ba91d66c5826359b7046 (diff)
downloadbcm5719-llvm-cc71620c866ad7b5bc7c451704e04374c68ef963.tar.gz
bcm5719-llvm-cc71620c866ad7b5bc7c451704e04374c68ef963.zip
give alpha its readonly section. This optimizes alpha, and prevents a
testsuite regression with a coming patch. llvm-svn: 77832
Diffstat (limited to 'llvm/lib/Target/Alpha')
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
index 001723a2fa7..73fab21294a 100644
--- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
+++ b/llvm/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));
}
};
}
OpenPOWER on IntegriCloud