[LLVMdev] Scope and symbol table

SAYER Christian chrsayer at dibcom.fr
Thu Sep 18 08:44:19 PDT 2008


Hi,
the llvm programmer's manual states in the symbol table paragraph:

>The ValueSymbolTable class provides a symbol table that the 
>Function and Module classes use for naming value definitions

and

>call setName on a value, which will autoinsert it into the appropriate
>symbol table

So I conclude the following:
-for Values, this intrinsic symbol table provides a function scope and
any other scope may be achieved e.g. by some kind of "name mangling"
-for Functions, it provides a Module scope, which may be extended by
linking Modules.

Is this correct?

Regards, Christian






More information about the llvm-dev mailing list