mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +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:
@@ -68,7 +68,7 @@ class Annotation {
|
||||
Annotation *Next; // The next annotation in the linked list
|
||||
public:
|
||||
inline Annotation(AnnotationID id) : ID(id), Next(0) {}
|
||||
virtual ~Annotation() {} // Designed to be subclassed
|
||||
virtual ~Annotation(); // Designed to be subclassed
|
||||
|
||||
// getID - Return the unique ID# of this annotation
|
||||
inline AnnotationID getID() const { return ID; }
|
||||
@@ -95,14 +95,7 @@ class Annotable {
|
||||
void operator=(const Annotable &); // Do not implement
|
||||
public:
|
||||
Annotable() : AnnotationList(0) {}
|
||||
virtual ~Annotable() { // Virtual because it's designed to be subclassed...
|
||||
Annotation *A = AnnotationList;
|
||||
while (A) {
|
||||
Annotation *Next = A->getNext();
|
||||
delete A;
|
||||
A = Next;
|
||||
}
|
||||
}
|
||||
virtual ~Annotable(); // Virtual because it's designed to be subclassed...
|
||||
|
||||
// getAnnotation - Search the list for annotations of the specified ID. The
|
||||
// pointer returned is either null (if no annotations of the specified ID
|
||||
|
@@ -44,7 +44,7 @@ class DerivedType;
|
||||
|
||||
class AbstractTypeUser {
|
||||
protected:
|
||||
virtual ~AbstractTypeUser() {} // Derive from me
|
||||
virtual ~AbstractTypeUser(); // Derive from me
|
||||
public:
|
||||
|
||||
/// refineAbstractType - The callback method invoked when an abstract type is
|
||||
|
@@ -68,7 +68,7 @@ class Annotation {
|
||||
Annotation *Next; // The next annotation in the linked list
|
||||
public:
|
||||
inline Annotation(AnnotationID id) : ID(id), Next(0) {}
|
||||
virtual ~Annotation() {} // Designed to be subclassed
|
||||
virtual ~Annotation(); // Designed to be subclassed
|
||||
|
||||
// getID - Return the unique ID# of this annotation
|
||||
inline AnnotationID getID() const { return ID; }
|
||||
@@ -95,14 +95,7 @@ class Annotable {
|
||||
void operator=(const Annotable &); // Do not implement
|
||||
public:
|
||||
Annotable() : AnnotationList(0) {}
|
||||
virtual ~Annotable() { // Virtual because it's designed to be subclassed...
|
||||
Annotation *A = AnnotationList;
|
||||
while (A) {
|
||||
Annotation *Next = A->getNext();
|
||||
delete A;
|
||||
A = Next;
|
||||
}
|
||||
}
|
||||
virtual ~Annotable(); // Virtual because it's designed to be subclassed...
|
||||
|
||||
// getAnnotation - Search the list for annotations of the specified ID. The
|
||||
// pointer returned is either null (if no annotations of the specified ID
|
||||
|
Reference in New Issue
Block a user