aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTarun Prabhu <tarun@lanl.gov>2025-05-30 08:27:08 -0600
committerGitHub <noreply@github.com>2025-05-30 08:27:08 -0600
commit597340b5b666bdee2887f56c111407b6737cbf34 (patch)
tree35491d2366cb592123ef3f3cdd0e01a48a986a47 /clang/lib/Frontend/CompilerInvocation.cpp
parente00366dcde294b420ae9decf5ac5d85463fd274f (diff)
downloadllvm-597340b5b666bdee2887f56c111407b6737cbf34.zip
llvm-597340b5b666bdee2887f56c111407b6737cbf34.tar.gz
llvm-597340b5b666bdee2887f56c111407b6737cbf34.tar.bz2
Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (#142159)
Reverts llvm/llvm-project#136098
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 11d0dc6..9c33910 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1499,11 +1499,11 @@ static void setPGOUseInstrumentor(CodeGenOptions &Opts,
// which is available (might be one or both).
if (PGOReader->isIRLevelProfile() || PGOReader->hasMemoryProfile()) {
if (PGOReader->hasCSIRLevelProfile())
- Opts.setProfileUse(llvm::driver::ProfileInstrKind::ProfileCSIRInstr);
+ Opts.setProfileUse(CodeGenOptions::ProfileCSIRInstr);
else
- Opts.setProfileUse(llvm::driver::ProfileInstrKind::ProfileIRInstr);
+ Opts.setProfileUse(CodeGenOptions::ProfileIRInstr);
} else
- Opts.setProfileUse(llvm::driver::ProfileInstrKind::ProfileClangInstr);
+ Opts.setProfileUse(CodeGenOptions::ProfileClangInstr);
}
void CompilerInvocation::setDefaultPointerAuthOptions(