diff options
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index a76bda15076b..72bb125397db 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -4172,7 +4172,8 @@ static void updateModuleTimestamp(ModuleFile &MF) { // Overwrite the timestamp file contents so that file's mtime changes. std::string TimestampFilename = MF.getTimestampFilename(); std::error_code EC; - llvm::raw_fd_ostream OS(TimestampFilename, EC, llvm::sys::fs::OF_Text); + llvm::raw_fd_ostream OS(TimestampFilename, EC, + llvm::sys::fs::OF_TextWithCRLF); if (EC) return; OS << "Timestamp file\n"; @@ -11977,6 +11978,12 @@ OMPClause *OMPClauseReader::readClause() { case llvm::omp::OMPC_destroy: C = new (Context) OMPDestroyClause(); break; + case llvm::omp::OMPC_novariants: + C = new (Context) OMPNovariantsClause(); + break; + case llvm::omp::OMPC_nocontext: + C = new (Context) OMPNocontextClause(); + break; case llvm::omp::OMPC_detach: C = new (Context) OMPDetachClause(); break; @@ -11986,6 +11993,9 @@ OMPClause *OMPClauseReader::readClause() { case llvm::omp::OMPC_affinity: C = OMPAffinityClause::CreateEmpty(Context, Record.readInt()); break; + case llvm::omp::OMPC_filter: + C = new (Context) OMPFilterClause(); + break; #define OMP_CLAUSE_NO_CLASS(Enum, Str) \ case llvm::omp::Enum: \ break; @@ -12162,6 +12172,18 @@ void OMPClauseReader::VisitOMPDestroyClause(OMPDestroyClause *C) { C->setVarLoc(Record.readSourceLocation()); } +void OMPClauseReader::VisitOMPNovariantsClause(OMPNovariantsClause *C) { + VisitOMPClauseWithPreInit(C); + C->setCondition(Record.readSubExpr()); + C->setLParenLoc(Record.readSourceLocation()); +} + +void OMPClauseReader::VisitOMPNocontextClause(OMPNocontextClause *C) { + VisitOMPClauseWithPreInit(C); + C->setCondition(Record.readSubExpr()); + C->setLParenLoc(Record.readSourceLocation()); +} + void OMPClauseReader::VisitOMPUnifiedAddressClause(OMPUnifiedAddressClause *) {} void OMPClauseReader::VisitOMPUnifiedSharedMemoryClause( @@ -12945,6 +12967,12 @@ void OMPClauseReader::VisitOMPOrderClause(OMPOrderClause *C) { C->setKindKwLoc(Record.readSourceLocation()); } +void OMPClauseReader::VisitOMPFilterClause(OMPFilterClause *C) { + VisitOMPClauseWithPreInit(C); + C->setThreadID(Record.readSubExpr()); + C->setLParenLoc(Record.readSourceLocation()); +} + OMPTraitInfo *ASTRecordReader::readOMPTraitInfo() { OMPTraitInfo &TI = getContext().getNewOMPTraitInfo(); TI.Sets.resize(readUInt32()); |