[LLVMdev] isa and friends as an alternative to dynamic cast?
Chris Lattner
sabre at nondot.org
Thu Apr 21 22:13:53 PDT 2005
On Thu, 21 Apr 2005, Jeff Cohen wrote:
> That's a good point.
I think there are some issues with doing this (e.g. EH doesn't work, so
the very few places we use it would have to be modified), but other than
that I fully support the idea.
-Chris
> Evan Jones wrote:
>
>> On Thu, 2005-21-04 at 19:43 -0700, Reid Spencer wrote:
>>
>>> In case it wasn't obvious from Misha's answer, the main reason for
>>> doing this is speed. RTTI is not very quick.
>>>
>>
>> Right. This is why I was somewhat suprized to see the "isa" facilities
>> included in LLVM without also disabling rtti. It will reduce the memory
>> footprint a fair bit if you do disable it, at least based on my
>> experience with other C++ projects.
>>
>> Evan Jones
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-Chris
--
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/
More information about the llvm-dev
mailing list