[LLVMdev] MachineOperand: GlobalAddress vs. ExternalSymbol

Chris Lattner sabre at nondot.org
Sat Jun 19 00:34:01 PDT 2004


On Fri, 18 Jun 2004, Reid Spencer wrote:
> On Fri, 2004-06-18 at 10:13, Chris Lattner wrote:
>
> > Module::gbegin/gend iterate over the global variables, and ::begin/end
> > iterate over the functions, some of which may be prototypes.
>
> This confused Vladimir and I remember it confusing me when I was
> reviewing LLVM core a few months ago. Would it be worthwhile to consider
> naming these globals_begin/globals_end and
> functions_begin/functions_end? so their use is completely clear?

Sure, they can be renamed.  For commonly used methods like this I would
like to keep them relatively terse though.  How about gvbegin/end and
funcbegin/end?  Would anyone like to make a patch?  :)

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list