mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Make sure that at least one virtual method is defined in a .cpp file to avoid
having the compiler emit RTTI and vtables to EVERY translation unit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11871 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,6 +15,18 @@
|
||||
#include "Support/Annotation.h"
|
||||
using namespace llvm;
|
||||
|
||||
Annotation::~Annotation() {} // Designed to be subclassed
|
||||
|
||||
Annotable::~Annotable() { // Virtual because it's designed to be subclassed...
|
||||
Annotation *A = AnnotationList;
|
||||
while (A) {
|
||||
Annotation *Next = A->getNext();
|
||||
delete A;
|
||||
A = Next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
typedef std::map<const std::string, unsigned> IDMapType;
|
||||
static unsigned IDCounter = 0; // Unique ID counter
|
||||
|
||||
@@ -41,7 +53,6 @@ static void eraseFromFactMap(unsigned ID) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
AnnotationID AnnotationManager::getID(const std::string &Name) { // Name -> ID
|
||||
IDMapType::iterator I = getIDMap().find(Name);
|
||||
if (I == getIDMap().end()) {
|
||||
|
||||
Reference in New Issue
Block a user