[cfe-commits] r123192 - in /cfe/trunk: lib/CodeGen/CodeGenModule.cpp test/CodeGen/blocksignature.c test/CodeGen/const-init.c test/CodeGen/darwin-string-literals.c test/CodeGen/func-in-block.c test/CodeGen/predefined-expr.c test/CodeGen/string-literal-short-wstring.c test/CodeGen/string-literal.c test/CodeGenCXX/predefined-expr.cpp test/CodeGenObjC/predefined-expr.m

Chris Lattner clattner at apple.com
Tue Jan 11 17:34:59 PST 2011


On Jan 10, 2011, at 2:34 PM, Rafael Espindola wrote:

> Author: rafael
> Date: Mon Jan 10 16:34:03 2011
> New Revision: 123192
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=123192&view=rev
> Log:
> Add unnamed_addr when creating artificial string globals. For example, in
> 
> static const char foo[] = "foo";
> static const char *bar = "bar";
> 
> the global created to hold "bar" will have it, but foo will not.

Hi Rafael,

Is this safe to add to CreateRuntimeVariable?

-Chris



More information about the cfe-commits mailing list