From 0eb7d86f5873ce897894339a3cc5bc69ca507bee Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 4 Aug 2022 13:04:59 -0400 Subject: Revert "[InstrProf] Add new format for -fprofile-list=" This reverts commit b692312ca432d9a379f67a8d83177a6f1722baaa. Breaks tests on Windows, see https://reviews.llvm.org/D130808#3699952 --- clang/lib/CodeGen/CodeGenFunction.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') 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 = -- cgit v1.1