[LLVMdev] isa and friends as an alternative to dynamic cast?

Jeff Cohen jeffc at jolt-lang.org
Thu Apr 21 19:53:27 PDT 2005


That's a good point.

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
>
>
>  
>




More information about the llvm-dev mailing list