[LLVMdev] description of llvm::Value correct?

Chris Lattner clattner at apple.com
Tue Mar 8 09:03:41 PST 2011


On Mar 6, 2011, at 7:18 AM, Jochen Wilhelmy wrote:

> Hi!
> 
> in the detailed description of llvm::Value it says:
> 
> All _types_ can have a name and they should belong to some Module
> 
> Is this correct or is it rather
> 
> All _values_ can have a name and they should belong to some Module?

Yes, that was wrong.  I updated the comment in r127252.  Also, ConstantInt can't have a name, so the comment was wrong for other reasons as well.

> Is it correct to use types across modules (in the same context)?

Yep, that is correct.

-Chris



More information about the llvm-dev mailing list