[llvm-commits] [llvm] r77832 - /llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp

Chris Lattner sabre at nondot.org
Sat Aug 1 16:44:04 PDT 2009


Author: lattner
Date: Sat Aug  1 18:44:04 2009
New Revision: 77832

URL: http://llvm.org/viewvc/llvm-project?rev=77832&view=rev
Log:
give alpha its readonly section.  This optimizes alpha, and prevents a
testsuite regression with a coming patch.

Modified:
    llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp

Modified: llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp?rev=77832&r1=77831&r2=77832&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp Sat Aug  1 18:44:04 2009
@@ -40,6 +40,8 @@
                                      SectionKind::get(SectionKind::Text));
     DataSection = getOrCreateSection("_data", true, 
                                      SectionKind::get(SectionKind::DataRel));
+    ReadOnlySection = getOrCreateSection("_rodata", true, 
+                                     SectionKind::get(SectionKind::ReadOnly));
   }
 };
 }





More information about the llvm-commits mailing list