[cfe-commits] r63636 - in /cfe/trunk/lib/CodeGen: CGDecl.cpp CodeGenFunction.h

Chris Lattner clattner at apple.com
Tue Feb 3 10:26:27 PST 2009


On Feb 3, 2009, at 10:07 AM, Sanjiv Gupta wrote:

> Author: sgupta
> Date: Tue Feb  3 12:07:49 2009
> New Revision: 63636
>
> URL: http://llvm.org/viewvc/llvm-project?rev=63636&view=rev
> Log:
> Targets that don't have stack use global address space for parameters.
> Specify external linkage for such globals so that llvm optimizer do
> not assume there values initialized as zero.

hi Sangiv,

If you give these things 'common' linkage, the optimizer won't assume  
an initializer, and you won't have to provide an out-of-line  
definition for them.

-Chris



More information about the cfe-commits mailing list