[llvm-commits] [llvm] r78097 - in /llvm/trunk: include/llvm/LLVMContext.h lib/VMCore/Constants.cpp lib/VMCore/LLVMContextImpl.cpp lib/VMCore/LLVMContextImpl.h
Chris Lattner
clattner at apple.com
Tue Aug 4 22:30:04 PDT 2009
On Aug 4, 2009, at 9:17 PM, Owen Anderson wrote:
>
> On Aug 4, 2009, at 9:11 PM, Chris Lattner wrote:
>
>>
>> On Aug 4, 2009, at 9:08 PM, Owen Anderson wrote:
>>
>>> On Aug 4, 2009, at 8:54 PM, Chris Lattner wrote:
>>>> Fine, its implementation is private to vmcore, right? Since it has
>>>> to be forward declared in various headers, why not use class?
>>>
>>> Because MSVC is unhappy if you mix class/struct for the same type.
>>
>> I mean "why not use class consistently everywhere". If LLVMContext
>> is
>> an internal implementation detail of VMCore, it is unfortunate that
>> the tagtype has to be exposed at all. You didn't answer the first q.
>
> LLVMContext isn't internal to VMCore. Clients need to be able to
> instantiate it. LLVMContextImpl is private to VMCore, though. I'm
> not clear on how that really impact the struct vs. class issue.
Please just use class, thanks!
-Chris
More information about the llvm-commits
mailing list