[LLVMdev] Question about structure of SymbolTable

Chris Lattner sabre at nondot.org
Mon Nov 17 22:59:00 PST 2003


> Global symbols including new named types are named in the global symbol
> table.  In addition each function contains a local symbol table naming
> local items, including temporary variables.

To further the confusion on this issue, I am planning on making a change
to the LLVM classes (not the bytecode or asm files) w.r.t types and the
symbol table.  Basically, the symbol table class needs to be cleaned up a
bit, and will end up storing types in a separate map from the global
variables and functions (which will still be a part of the SymbolTable
class though).

The end goal of this is to make the Type class not derive from Value: you
can't use Types in any context where a value makes sense anyway.  For more
information on other planned cleanups, see:

http://llvm.cs.uiuc.edu/PR122

Again, this will not affect the .ll or .bc file formats, only code which
grovels through the symbol table looking for types.  Also note that this
might not happen for another couple of weeks...

-Chris

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




More information about the llvm-dev mailing list