[llvm] r194575 - Remove AllowQuotesInName and friends from MCAsmInfo.

Kevin Modzelewski kmod at dropbox.com
Wed Nov 13 20:44:42 PST 2013


Ah ok, I didn't realize it was unsupported.  I was just naming global
string constants after the (unsanitized) contents, most of which are
null-terminated; I was surprised that it worked but I didn't complain.  I
guess this falls under me "using the libraries in a brittle fashion" :)

Kevin


On Wed, Nov 13, 2013 at 7:17 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 13 November 2013 22:09, Kevin Modzelewski <kmod at dropbox.com> wrote:
> > Did a little more debugging, and it seems like this is related to the
> fact
> > that I'm creating global variables with odd names: specifically, I get
> all
> > sorts of weird behavior if I put any nul bytes into variable names.
> >
>
> Why are you putting null bytes in the name? The symbol table on ELF
> (and I think COFF and MachO) uses C strings.
>
> Right now if you write
> @"foo\00bar" = global i32 42
>
> You get a symbol named foo. We should probably produce an error. In
> any case, you can just use
>
> @foo_00_bar = global i32 42
>
> and get the same name with both versions.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131113/0b8e4bd4/attachment.html>


More information about the llvm-commits mailing list