Lines Matching refs:SemaRef
2955 void ASTWriter::WriteSelectors(Sema &SemaRef) {
2959 if (SemaRef.MethodPool.empty() && SelectorIDs.empty())
2973 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S);
2979 if (F != SemaRef.MethodPool.end()) {
3054 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) {
3056 if (SemaRef.ReferencedSelectors.empty())
3064 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) {
3791 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) {
3792 if (!SemaRef.Context.getLangOpts().OpenCL)
3795 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions();
3854 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) {
3855 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap;
3876 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) {
3878 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation();
3883 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef,
3912 Writer.writeExtensionContents(SemaRef, Stream);
4062 uint64_t ASTWriter::WriteAST(Sema &SemaRef, const std::string &OutputFile,
4077 Context = &SemaRef.Context;
4078 PP = &SemaRef.PP;
4081 WriteASTCore(SemaRef, isysroot, OutputFile, WritingModule);
4100 uint64_t ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot,
4111 ASTContext &Context = SemaRef.Context;
4112 Preprocessor &PP = SemaRef.PP;
4144 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions, TentativeDefinitions);
4149 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls,
4156 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls, DelegatingCtorDecls);
4162 for (auto &WeakUndeclaredIdentifier : SemaRef.WeakUndeclaredIdentifiers) {
4173 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls);
4177 if (!SemaRef.VTableUses.empty()) {
4178 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) {
4179 AddDeclRef(SemaRef.VTableUses[I].first, VTableUses);
4180 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses);
4181 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]);
4187 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates)
4192 for (const auto &I : SemaRef.PendingInstantiations) {
4196 assert(SemaRef.PendingLocalImplicitInstantiations.empty() &&
4201 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc) {
4202 AddDeclRef(SemaRef.getStdNamespace(), SemaDeclRefs);
4203 AddDeclRef(SemaRef.getStdBadAlloc(), SemaDeclRefs);
4213 for (const auto &I : SemaRef.KnownNamespaces) {
4222 SemaRef.getUndefinedButUsed(Undefined);
4233 SemaRef.getMismatchingDeleteExpressions()) {
4327 for (IdentifierResolver::iterator D = SemaRef
4328 DEnd = SemaRef.IdResolver.end();
4439 WriteSelectors(SemaRef);
4440 WriteReferencedSelectorsPool(SemaRef);
4441 WriteLateParsedTemplates(SemaRef);
4442 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule);
4443 WriteFPPragmaOptions(SemaRef.getFPOptions());
4444 WriteOpenCLExtensions(SemaRef);
4557 WriteOptimizePragmaOptions(SemaRef);
4567 WriteModuleFileExtension(SemaRef, *ExtWriter);