]> granicus.if.org Git - clang/commitdiff
Add vtable anchor to classes.
authorRichard Trieu <rtrieu@google.com>
Sat, 29 Dec 2018 02:02:30 +0000 (02:02 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 29 Dec 2018 02:02:30 +0000 (02:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350143 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h
include/clang/AST/DeclTemplate.h
include/clang/Lex/ModuleMap.h
lib/AST/DeclCXX.cpp
lib/AST/DeclTemplate.cpp
lib/Lex/ModuleMap.cpp

index 58e01bf0f0519421654a42287ca1448d88cae816..84528067012bf97b81e220ead62355f8d8d27612 100644 (file)
@@ -3918,6 +3918,7 @@ class MSPropertyDecl : public DeclaratorDecl {
       : DeclaratorDecl(MSProperty, DC, L, N, T, TInfo, StartL),
         GetterId(Getter), SetterId(Setter) {}
 
+  void anchor() override;
 public:
   friend class ASTDeclReader;
 
index 9e01c4950d754e6e37fd4de075e2c9e31c91a79c..f6e3d8f300ba63cf10de5abeec0d7f2383854d3e 100644 (file)
@@ -751,6 +751,7 @@ class RedeclarableTemplateDecl : public TemplateDecl,
     return getMostRecentDecl();
   }
 
+  void anchor() override;
 protected:
   template <typename EntryType> struct SpecEntryTraits {
     using DeclType = EntryType;
index 4daa1dd817b66447d46dd5c4c4fbe8e72c7fcc9f..a38c8d7819db488fef98151e66e98d721aa9df25 100644 (file)
@@ -45,6 +45,8 @@ class SourceManager;
 /// A mechanism to observe the actions of the module map parser as it
 /// reads module map files.
 class ModuleMapCallbacks {
+  virtual void anchor();
+
 public:
   virtual ~ModuleMapCallbacks() = default;
 
index 33f159417b7130dce20adf5c3dd35ee225609001..2893fca859ed6095aeb42cda52a2636fc82f8179 100644 (file)
@@ -2910,6 +2910,8 @@ void DecompositionDecl::printName(llvm::raw_ostream &os) const {
   os << ']';
 }
 
+void MSPropertyDecl::anchor() {}
+
 MSPropertyDecl *MSPropertyDecl::Create(ASTContext &C, DeclContext *DC,
                                        SourceLocation L, DeclarationName N,
                                        QualType T, TypeSourceInfo *TInfo,
index 04e1803281bede09279d603aa56ca63a3464741b..76f29dac1647d873e248421526afd5990c2717f9 100644 (file)
@@ -149,6 +149,8 @@ void *allocateDefaultArgStorageChain(const ASTContext &C) {
 // RedeclarableTemplateDecl Implementation
 //===----------------------------------------------------------------------===//
 
+void RedeclarableTemplateDecl::anchor() {}
+
 RedeclarableTemplateDecl::CommonBase *RedeclarableTemplateDecl::getCommonPtr() const {
   if (Common)
     return Common;
index 13d2b728f58c360a89047989e066058b58672f03..cff950b703a6f3fe94148e68f5c106c388712b39 100644 (file)
@@ -54,6 +54,8 @@
 
 using namespace clang;
 
+void ModuleMapCallbacks::anchor() {}
+
 void ModuleMap::resolveLinkAsDependencies(Module *Mod) {
   auto PendingLinkAs = PendingLinkAsModule.find(Mod->Name);
   if (PendingLinkAs != PendingLinkAsModule.end()) {