From 6883a88fdbcb386d4d7d8d2714be7bd2e0e29ed9 Mon Sep 17 00:00:00 2001
From: Chris Lattner
If a class is defined in a header file and has a v-table (either it has +virtual methods or it derives from classes with virtual methods), it must +always have at least one out-of-line virtual method in the class. Without +this, the compiler will copy the vtable and RTTI into every .o file that +#includes the header, bloating .o file sizes and increasing link times. +
+ +