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

Chris Lattner clattner at apple.com
Wed Aug 5 09:18:54 PDT 2009


On Aug 5, 2009, at 7:00 AM, Andrew Lenharth wrote:

> Author: alenhar2
> Date: Wed Aug  5 08:59:57 2009
> New Revision: 78189
>
> URL: http://llvm.org/viewvc/llvm-project?rev=78189&view=rev
> Log:
> Alpha: Get section directives right

Hey Andrew,

Can Alpha derive from the ELF common code?

-Chris

>
> 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=78189&r1=78188&r2=78189&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp (original)
> +++ llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp Wed Aug  5  
> 08:59:57 2009
> @@ -36,11 +36,11 @@
> public:
>   void Initialize(MCContext &Ctx, const TargetMachine &TM) {
>     TargetLoweringObjectFile::Initialize(Ctx, TM);
> -    TextSection = getOrCreateSection("_text", true,
> +    TextSection = getOrCreateSection(".text", true,
>                                      SectionKind::getText());
> -    DataSection = getOrCreateSection("_data", true,
> +    DataSection = getOrCreateSection(".data", true,
>                                      SectionKind::getDataRel());
> -    ReadOnlySection = getOrCreateSection("_rodata", true,
> +    ReadOnlySection = getOrCreateSection(".rodata", true,
>                                          SectionKind::getReadOnly());
>   }
> };
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list