[LLVMdev] RTTI handling

Somorjai, Akos ASomorjai at graphisoft.com
Mon Oct 3 10:47:06 PDT 2011

Apple clang version 3.0 (tags/Apple/clang-211.9) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin10.8.0

It's part of the Xcode 4.2b7 package.

Shall I try to compile it on my own?

Thanks, Akos

From: John McCall <rjmccall at apple.com<mailto:rjmccall at apple.com>>
Date: Mon, 3 Oct 2011 10:19:04 -0700
To: Ákos Somorjai <asomorjai at graphisoft.com<mailto:asomorjai at graphisoft.com>>
Cc: "llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>" <llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>>
Subject: Re: [LLVMdev] RTTI handling

On Oct 3, 2011, at 4:42 AM, Somorjai, Akos wrote:
I'm trying to use this warning to check the vtable problem. Here's an example

In mem.hpp

classAA {
// Construction / destruction:
AA ();
AA (constAA&); // Disabled
virtual ~AA ();

In mem.cpp

#include "mem.hpp"


And I still get the following warning:

warning: 'AA' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Wweak-vtables,3]

Which version of Clang are you using?  Like I said, this warning was still experimental even a few months ago, and it's gotten a lot of attention on ToT.  In particular, this case no longer warns.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111003/3fcb122b/attachment.html>

More information about the llvm-dev mailing list