[llvm-commits] [llvm] r116766 - /llvm/trunk/include/llvm/MC/MCObjectFormat.h

Bill Wendling wendling at apple.com
Mon Oct 18 16:47:50 PDT 2010


On Oct 18, 2010, at 4:18 PM, Chandler Carruth wrote:

> Author: chandlerc
> Date: Mon Oct 18 18:18:51 2010
> New Revision: 116766
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=116766&view=rev
> Log:
> Add a virtual destructor to silence a GCC warning.
> 
> Modified:
>    llvm/trunk/include/llvm/MC/MCObjectFormat.h
> 
> Modified: llvm/trunk/include/llvm/MC/MCObjectFormat.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFormat.h?rev=116766&r1=116765&r2=116766&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/MC/MCObjectFormat.h (original)
> +++ llvm/trunk/include/llvm/MC/MCObjectFormat.h Mon Oct 18 18:18:51 2010
> @@ -15,6 +15,8 @@
> 
> class MCObjectFormat {
> public:
> +  virtual ~MCObjectFormat() {}
> +

Hi Chandler,

Should the definition for this go in the MCObjectFormat.cpp file to "anchor" the vtable?

-bw





More information about the llvm-commits mailing list