Add vtable anchor to classes.

llvm-svn: 350143
This commit is contained in:
Richard Trieu 2018-12-29 02:02:30 +00:00
parent a87b70d1db
commit b3e902f4c3
6 changed files with 10 additions and 0 deletions

View 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;

View File

@ -751,6 +751,7 @@ class RedeclarableTemplateDecl : public TemplateDecl,
return getMostRecentDecl();
}
void anchor() override;
protected:
template <typename EntryType> struct SpecEntryTraits {
using DeclType = EntryType;

View 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;

View 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,

View File

@ -149,6 +149,8 @@ void *allocateDefaultArgStorageChain(const ASTContext &C) {
// RedeclarableTemplateDecl Implementation
//===----------------------------------------------------------------------===//
void RedeclarableTemplateDecl::anchor() {}
RedeclarableTemplateDecl::CommonBase *RedeclarableTemplateDecl::getCommonPtr() const {
if (Common)
return Common;

View 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()) {