diff options
Diffstat (limited to 'clang/include/clang/AST/MangleNumberingContext.h')
| -rw-r--r-- | clang/include/clang/AST/MangleNumberingContext.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/AST/MangleNumberingContext.h b/clang/include/clang/AST/MangleNumberingContext.h index 4f81e0c5548..5a227f201fb 100644 --- a/clang/include/clang/AST/MangleNumberingContext.h +++ b/clang/include/clang/AST/MangleNumberingContext.h @@ -33,10 +33,11 @@ class VarDecl; class MangleNumberingContext : public RefCountedBase<MangleNumberingContext> { llvm::DenseMap<const Type *, unsigned> ManglingNumbers; - llvm::DenseMap<IdentifierInfo*, unsigned> VarManglingNumbers; llvm::DenseMap<IdentifierInfo*, unsigned> TagManglingNumbers; public: + virtual ~MangleNumberingContext() {} + /// \brief Retrieve the mangling number of a new lambda expression with the /// given call operator within this context. unsigned getManglingNumber(const CXXMethodDecl *CallOperator); @@ -47,7 +48,7 @@ public: /// \brief Retrieve the mangling number of a static local variable within /// this context. - unsigned getManglingNumber(const VarDecl *VD); + virtual unsigned getManglingNumber(const VarDecl *VD) = 0; /// \brief Retrieve the mangling number of a static local variable within /// this context. |

