diff options
author | Petr Hosek <phosek@google.com> | 2021-01-26 12:25:28 -0800 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2021-01-26 12:25:28 -0800 |
commit | 1e634f3952aa3914d9f962ac1151fccb4469d8ac (patch) | |
tree | 96d125971b1dbe27cd7af60fef2b9f48a6d3d4ec /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 7636b1f6efd56063adcde4f908740660365462a5 (diff) | |
download | llvm-1e634f3952aa3914d9f962ac1151fccb4469d8ac.zip llvm-1e634f3952aa3914d9f962ac1151fccb4469d8ac.tar.gz llvm-1e634f3952aa3914d9f962ac1151fccb4469d8ac.tar.bz2 |
Revert "Support for instrumenting only selected files or functions"
This reverts commit 4edf35f11a9e20bd5df3cb47283715f0ff38b751 because
the test fails on Windows bots.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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<PatchableFunctionEntryAttr>() : nullptr) { |