[LLVMbugs] Type naming clarification
reid at x10sys.com
Wed May 31 08:24:19 PDT 2006
That comment is not 100% accurate :)
While it is true that Type's don't inherently have names outside of the
SymbolTable, there are facilities at the Module level to deal with type
names. Please review the following Module functions:
/// addTypeName - Insert an entry in the symbol table mapping Str to
/// there is already an entry for this name, true is returned and the
/// table is not modified.
bool addTypeName(const std::string &Name, const Type *Ty);
/// getTypeName - If there is at least one entry in the symbol table
/// specified type, return it.
std::string getTypeName(const Type *Ty) const;
/// getTypeByName - Return the type with the specified name in this
/// null if there is none by that name.
const Type *getTypeByName(const std::string &Name) const;
On Wed, 2006-05-31 at 17:30 +0400, Vladimir Prus wrote:
> Just small addition. I'd commit without asking, but maybe what I wrote is not
> 100% accurate?
> - Volodya
> LLVMbugs mailing list
> LLVMbugs at cs.uiuc.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the llvm-bugs