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 | cc71620c866ad7b5bc7c451704e04374c68ef963 (patch) | |
| tree | 88ff36dc92c23ab116e81fb7e1d0bb856c19c398 /llvm | |
| parent | 36741c8a29866375a4a4ba91d66c5826359b7046 (diff) | |
| download | bcm5719-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')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 2 | 
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));    }  };  }  | 

