@@ -69,24 +69,24 @@ ProfileList::ProfileList(ArrayRef<std::string> Paths, SourceManager &SM)
6969
7070ProfileList::~ProfileList () = default ;
7171
72- static StringRef getSectionName (CodeGenOptions ::ProfileInstrKind Kind) {
72+ static StringRef getSectionName (llvm::driver ::ProfileInstrKind Kind) {
7373 switch (Kind) {
74- case CodeGenOptions ::ProfileNone:
74+ case llvm::driver::ProfileInstrKind ::ProfileNone:
7575 return " " ;
76- case CodeGenOptions ::ProfileClangInstr:
76+ case llvm::driver::ProfileInstrKind ::ProfileClangInstr:
7777 return " clang" ;
78- case CodeGenOptions ::ProfileIRInstr:
78+ case llvm::driver::ProfileInstrKind ::ProfileIRInstr:
7979 return " llvm" ;
80- case CodeGenOptions ::ProfileCSIRInstr:
80+ case llvm::driver::ProfileInstrKind ::ProfileCSIRInstr:
8181 return " csllvm" ;
8282 case CodeGenOptions::ProfileIRSampleColdCov:
8383 return " sample-coldcov" ;
8484 }
85- llvm_unreachable (" Unhandled CodeGenOptions ::ProfileInstrKind enum" );
85+ llvm_unreachable (" Unhandled llvm::driver ::ProfileInstrKind enum" );
8686}
8787
8888ProfileList::ExclusionType
89- ProfileList::getDefault (CodeGenOptions ::ProfileInstrKind Kind) const {
89+ ProfileList::getDefault (llvm::driver ::ProfileInstrKind Kind) const {
9090 StringRef Section = getSectionName (Kind);
9191 // Check for "default:<type>"
9292 if (SCL->inSection (Section, " default" , " allow" ))
@@ -117,7 +117,7 @@ ProfileList::inSection(StringRef Section, StringRef Prefix,
117117
118118std::optional<ProfileList::ExclusionType>
119119ProfileList::isFunctionExcluded (StringRef FunctionName,
120- CodeGenOptions ::ProfileInstrKind Kind) const {
120+ llvm::driver ::ProfileInstrKind Kind) const {
121121 StringRef Section = getSectionName (Kind);
122122 // Check for "function:<regex>=<case>"
123123 if (auto V = inSection (Section, " function" , FunctionName))
@@ -131,13 +131,13 @@ ProfileList::isFunctionExcluded(StringRef FunctionName,
131131
132132std::optional<ProfileList::ExclusionType>
133133ProfileList::isLocationExcluded (SourceLocation Loc,
134- CodeGenOptions ::ProfileInstrKind Kind) const {
134+ llvm::driver ::ProfileInstrKind Kind) const {
135135 return isFileExcluded (SM.getFilename (SM.getFileLoc (Loc)), Kind);
136136}
137137
138138std::optional<ProfileList::ExclusionType>
139139ProfileList::isFileExcluded (StringRef FileName,
140- CodeGenOptions ::ProfileInstrKind Kind) const {
140+ llvm::driver ::ProfileInstrKind Kind) const {
141141 StringRef Section = getSectionName (Kind);
142142 // Check for "source:<regex>=<case>"
143143 if (auto V = inSection (Section, " source" , FileName))
0 commit comments