diff options
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 45854af1bc5..3bea485c8fb 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -2563,19 +2563,11 @@ public: llvm::SmallVector<std::pair<CXXRecordDecl *, SourceLocation>, 4> ClassesWithUnmarkedVirtualMembers; - /// \brief Contains the set of classes with unmarked virtual members - /// that require a vtable. - llvm::SmallPtrSet<CXXRecordDecl *, 4> UnmarkedClassesRequiringVtable; - /// MaybeMarkVirtualMembersReferenced - If the passed in method is the /// key function of the record decl, will mark virtual member functions as /// referenced. void MaybeMarkVirtualMembersReferenced(SourceLocation Loc, CXXMethodDecl *MD); - /// \brief If the given class does not have a key function, mark its - /// virtual members as referenced. - void MaybeMarkVirtualMembersReferenced(SourceLocation Loc, CXXRecordDecl *RD); - /// MarkVirtualMembersReferenced - Will mark all virtual members of the given /// CXXRecordDecl referenced. void MarkVirtualMembersReferenced(SourceLocation Loc, @@ -3579,24 +3571,6 @@ public: } }; - /// \brief RAII class that determines when any errors have occurred - /// between the time the instance was created and the time it was - /// queried. - class ErrorTrap { - Sema &SemaRef; - unsigned PrevErrors; - - public: - explicit ErrorTrap(Sema &SemaRef) - : SemaRef(SemaRef), PrevErrors(SemaRef.getDiagnostics().getNumErrors()) {} - - /// \brief Determine whether any errors have occurred since this - /// object instance was created. - bool hasErrorOccurred() const { - return SemaRef.getDiagnostics().getNumErrors() > PrevErrors; - } - }; - /// \brief A stack-allocated class that identifies which local /// variable declaration instantiations are present in this scope. /// |