From 1e634f3952aa3914d9f962ac1151fccb4469d8ac Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 26 Jan 2021 12:25:28 -0800 Subject: Revert "Support for instrumenting only selected files or functions" This reverts commit 4edf35f11a9e20bd5df3cb47283715f0ff38b751 because the test fails on Windows bots. --- clang/lib/CodeGen/CodeGenFunction.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index b393c88..2c302ae 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -839,10 +839,6 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, } } - if (CGM.getCodeGenOpts().getProfileInstr() != CodeGenOptions::ProfileNone) - if (CGM.isProfileInstrExcluded(Fn, Loc)) - Fn->addFnAttr(llvm::Attribute::NoProfile); - unsigned Count, Offset; if (const auto *Attr = D ? D->getAttr() : nullptr) { -- cgit v1.1