[llvm-commits] [llvm] r81322 - /llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Török Edwin
edwintorok at gmail.com
Wed Sep 9 02:59:46 PDT 2009
On 2009-09-09 11:48, Anton Korobeynikov wrote:
> Author: asl
> Date: Wed Sep 9 03:48:53 2009
> New Revision: 81322
>
> URL: http://llvm.org/viewvc/llvm-project?rev=81322&view=rev
> Log:
> Provide proper section flags for various BSS flavours
>
Can this be pulled into 2.6? (and the testcase which is in r81327).
> Modified:
> llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
>
> Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=81322&r1=81321&r2=81322&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
> +++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Wed Sep 9 03:48:53 2009
> @@ -439,8 +439,12 @@
> if (Name[0] != '.') return K;
>
> // Some lame default implementation based on some magic section names.
> - if (strncmp(Name, ".gnu.linkonce.b.", 16) == 0 ||
> + if (strcmp(Name, ".bss") == 0 ||
> + strncmp(Name, ".bss.", 5) == 0 ||
> + strncmp(Name, ".gnu.linkonce.b.", 16) == 0 ||
> strncmp(Name, ".llvm.linkonce.b.", 17) == 0 ||
> + strcmp(Name, ".sbss") == 0 ||
> + strncmp(Name, ".sbss.", 6) == 0 ||
> strncmp(Name, ".gnu.linkonce.sb.", 17) == 0 ||
> strncmp(Name, ".llvm.linkonce.sb.", 18) == 0)
> return SectionKind::getBSS();
>
>
> _______________________________________________
> 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