give alpha its readonly section. This optimizes alpha, and prevents a
testsuite regression with a coming patch.
llvm-svn: 77832
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
index 001723a..73fab21 100644
--- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
@@ -40,6 +40,8 @@
SectionKind::get(SectionKind::Text));
DataSection = getOrCreateSection("_data", true,
SectionKind::get(SectionKind::DataRel));
+ ReadOnlySection = getOrCreateSection("_rodata", true,
+ SectionKind::get(SectionKind::ReadOnly));
}
};
}