[llvm-commits] [llvm] r63142 - in /llvm/trunk/lib/Target: DarwinTargetAsmInfo.cpp ELFTargetAsmInfo.cpp TargetAsmInfo.cpp

Bill Wendling isanbard at gmail.com
Tue Jan 27 14:58:54 PST 2009


On Tue, Jan 27, 2009 at 2:29 PM, Anton Korobeynikov <asl at math.spbu.ru> wrote:
> Author: asl
> Date: Tue Jan 27 16:29:24 2009
> New Revision: 63142
>
> URL: http://llvm.org/viewvc/llvm-project?rev=63142&view=rev
> Log:
> Treat [1 x i8] zeroinitializer as a C string, placing such stuff into
> mergeable string section. I don't see any bad impact of such decision
> (rather then placing it into mergeable const section, as it was before),
> but at least Darwin linker won't complain anymore.
>
> The problem in LLVM is that we don't have special type for string constants
> (like gcc does). Even more, we have two separate types: ConstatArray for non-null
> strings and ConstantAggregateZero for null stuff.... It's a bit weird :)
>
Thanks, Anton! :-)

-bw



More information about the llvm-commits mailing list