diff options
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
| -rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 18 | 
1 files changed, 16 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index c1b5cb7..d552821 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -225,7 +225,7 @@ bool ChainedASTReaderListener::ReadPreprocessorOptions(  }  void ChainedASTReaderListener::ReadCounter(const serialization::ModuleFile &M, -                                           unsigned Value) { +                                           uint32_t Value) {    First->ReadCounter(M, Value);    Second->ReadCounter(M, Value);  } @@ -973,7 +973,7 @@ bool PCHValidator::ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts,        PP.getPreprocessorOpts());  } -void PCHValidator::ReadCounter(const ModuleFile &M, unsigned Value) { +void PCHValidator::ReadCounter(const ModuleFile &M, uint32_t Value) {    PP.setCounterValue(Value);  } @@ -11255,6 +11255,9 @@ OMPClause *OMPClauseReader::readClause() {    case llvm::omp::OMPC_mergeable:      C = new (Context) OMPMergeableClause();      break; +  case llvm::omp::OMPC_threadset: +    C = new (Context) OMPThreadsetClause(); +    break;    case llvm::omp::OMPC_read:      C = new (Context) OMPReadClause();      break; @@ -11658,6 +11661,17 @@ void OMPClauseReader::VisitOMPDefaultClause(OMPDefaultClause *C) {    C->setDefaultVariableCategoryLocation(Record.readSourceLocation());  } +// Read the parameter of threadset clause. This will have been saved when +// OMPClauseWriter is called. +void OMPClauseReader::VisitOMPThreadsetClause(OMPThreadsetClause *C) { +  C->setLParenLoc(Record.readSourceLocation()); +  SourceLocation ThreadsetKindLoc = Record.readSourceLocation(); +  C->setThreadsetKindLoc(ThreadsetKindLoc); +  OpenMPThreadsetKind TKind = +      static_cast<OpenMPThreadsetKind>(Record.readInt()); +  C->setThreadsetKind(TKind); +} +  void OMPClauseReader::VisitOMPProcBindClause(OMPProcBindClause *C) {    C->setProcBindKind(static_cast<llvm::omp::ProcBindKind>(Record.readInt()));    C->setLParenLoc(Record.readSourceLocation());  | 
