From: Charles Davis Date: Mon, 31 May 2010 17:07:59 +0000 (+0000) Subject: Make methods non-virtual again for now. I accidentally committed this in X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61ecf35dcb18f53ea4b41ce9b8152f8046616be6;p=clang Make methods non-virtual again for now. I accidentally committed this in preparation for an alternate mangler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105224 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/Mangle.h b/lib/CodeGen/Mangle.h index a12a140f72..956217ebd4 100644 --- a/lib/CodeGen/Mangle.h +++ b/lib/CodeGen/Mangle.h @@ -84,8 +84,6 @@ public: Diagnostic &Diags) : Context(Context), Diags(Diags) { } - virtual ~MangleContext() { } - ASTContext &getASTContext() const { return Context; } Diagnostic &getDiags() const { return Diags; } @@ -111,28 +109,28 @@ public: /// @{ bool shouldMangleDeclName(const NamedDecl *D); - virtual void mangleName(const NamedDecl *D, llvm::SmallVectorImpl &); - virtual void mangleThunk(const CXXMethodDecl *MD, - const ThunkInfo &Thunk, + void mangleName(const NamedDecl *D, llvm::SmallVectorImpl &); + void mangleThunk(const CXXMethodDecl *MD, + const ThunkInfo &Thunk, + llvm::SmallVectorImpl &); + void mangleCXXDtorThunk(const CXXDestructorDecl *DD, CXXDtorType Type, + const ThisAdjustment &ThisAdjustment, llvm::SmallVectorImpl &); - virtual void mangleCXXDtorThunk(const CXXDestructorDecl *DD, CXXDtorType Type, - const ThisAdjustment &ThisAdjustment, - llvm::SmallVectorImpl &); - virtual void mangleGuardVariable(const VarDecl *D, - llvm::SmallVectorImpl &); - virtual void mangleCXXVTable(const CXXRecordDecl *RD, - llvm::SmallVectorImpl &); - virtual void mangleCXXVTT(const CXXRecordDecl *RD, - llvm::SmallVectorImpl &); - virtual void mangleCXXCtorVTable(const CXXRecordDecl *RD, int64_t Offset, - const CXXRecordDecl *Type, - llvm::SmallVectorImpl &); - virtual void mangleCXXRTTI(QualType T, llvm::SmallVectorImpl &); - virtual void mangleCXXRTTIName(QualType T, llvm::SmallVectorImpl &); - virtual void mangleCXXCtor(const CXXConstructorDecl *D, CXXCtorType Type, - llvm::SmallVectorImpl &); - virtual void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type, - llvm::SmallVectorImpl &); + void mangleGuardVariable(const VarDecl *D, + llvm::SmallVectorImpl &); + void mangleCXXVTable(const CXXRecordDecl *RD, + llvm::SmallVectorImpl &); + void mangleCXXVTT(const CXXRecordDecl *RD, + llvm::SmallVectorImpl &); + void mangleCXXCtorVTable(const CXXRecordDecl *RD, int64_t Offset, + const CXXRecordDecl *Type, + llvm::SmallVectorImpl &); + void mangleCXXRTTI(QualType T, llvm::SmallVectorImpl &); + void mangleCXXRTTIName(QualType T, llvm::SmallVectorImpl &); + void mangleCXXCtor(const CXXConstructorDecl *D, CXXCtorType Type, + llvm::SmallVectorImpl &); + void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type, + llvm::SmallVectorImpl &); void mangleBlock(const BlockDecl *BD, llvm::SmallVectorImpl &); void mangleInitDiscriminator() {