[LLVMdev] RTTI handling

Somorjai, Akos ASomorjai at graphisoft.com
Wed Oct 5 03:10:53 PDT 2011


John,

The version from the Xcode 4.2 GM package (Apple clang version 3.0 (tags/Apple/clang-211.10.1)) still has the same problem. Which version should I use?

Thanks, Akos


From: Ákos Somorjai <asomorjai at graphisoft.com<mailto:asomorjai at graphisoft.com>>
Date: Mon, 3 Oct 2011 17:47:06 +0000
To: John McCall <rjmccall at apple.com<mailto:rjmccall at apple.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

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:
protected:
AA ();
AA (constAA&); // Disabled
public:
virtual ~AA ();
};

In mem.cpp

#include "mem.hpp"

AA::~AA()
{
}

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.

John.
_______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu<mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111005/87cff28b/attachment.html>


More information about the llvm-dev mailing list