diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-01 23:44:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-01 23:44:04 +0000 |
| commit | cc3f15c9877f51054369eb27756ec7711826796e (patch) | |
| tree | 333ab1ce55897b4ec464943d456f35b5a4e7f968 /lib | |
| parent | ea620dfe1d2cc89ee574c442098663920b5fbe70 (diff) | |
| download | external_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.cpp | 2 |
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)); } }; } |
