[LLVMbugs] Type naming clarification

Reid Spencer 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
Type.  If  
  /// there is already an entry for this name, true is returned and the
symbol
  /// 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
for the
  /// specified type, return it.
  std::string getTypeName(const Type *Ty) const;

  /// getTypeByName - Return the type with the specified name in this
module, or  
  /// null if there is none by that name.
  const Type *getTypeByName(const std::string &Name) const;

Reid.

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
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20060531/8688c659/attachment.sig>


More information about the llvm-bugs mailing list