aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2022-08-04 13:04:59 -0400
committerNico Weber <thakis@chromium.org>2022-08-04 13:04:59 -0400
commit0eb7d86f5873ce897894339a3cc5bc69ca507bee (patch)
treeb3b7912ec6261bdff6ea6186e0b4182abd57b4aa /clang/lib/CodeGen/CodeGenFunction.cpp
parent07aaa35f74d845a20d48e644671dce150ebf7748 (diff)
downloadllvm-0eb7d86f5873ce897894339a3cc5bc69ca507bee.zip
llvm-0eb7d86f5873ce897894339a3cc5bc69ca507bee.tar.gz
llvm-0eb7d86f5873ce897894339a3cc5bc69ca507bee.tar.bz2
Revert "[InstrProf] Add new format for -fprofile-list="
This reverts commit b692312ca432d9a379f67a8d83177a6f1722baaa. Breaks tests on Windows, see https://reviews.llvm.org/D130808#3699952
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 7997a07..d2f2515 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -851,18 +851,9 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
}
}
- if (CGM.getCodeGenOpts().getProfileInstr() != CodeGenOptions::ProfileNone) {
- switch (CGM.isFunctionBlockedFromProfileInstr(Fn, Loc)) {
- case ProfileList::Skip:
- Fn->addFnAttr(llvm::Attribute::SkipProfile);
- break;
- case ProfileList::Forbid:
+ if (CGM.getCodeGenOpts().getProfileInstr() != CodeGenOptions::ProfileNone)
+ if (CGM.isFunctionBlockedFromProfileInstr(Fn, Loc))
Fn->addFnAttr(llvm::Attribute::NoProfile);
- break;
- case ProfileList::Allow:
- break;
- }
- }
unsigned Count, Offset;
if (const auto *Attr =