From cc71620c866ad7b5bc7c451704e04374c68ef963 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 1 Aug 2009 23:44:04 +0000 Subject: [PATCH] give alpha its readonly section. This optimizes alpha, and prevents a testsuite regression with a coming patch. llvm-svn: 77832 --- llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index 001723a2fa7a..73fab21294af 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)); } }; }