aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2021-01-26 12:25:28 -0800
committerPetr Hosek <phosek@google.com>2021-01-26 12:25:28 -0800
commit1e634f3952aa3914d9f962ac1151fccb4469d8ac (patch)
tree96d125971b1dbe27cd7af60fef2b9f48a6d3d4ec /clang/lib/CodeGen/CodeGenFunction.h
parent7636b1f6efd56063adcde4f908740660365462a5 (diff)
downloadllvm-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.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 8eb7adb..9d11466 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1442,8 +1442,7 @@ public:
/// Increment the profiler's counter for the given statement by \p StepV.
/// If \p StepV is null, the default increment is 1.
void incrementProfileCounter(const Stmt *S, llvm::Value *StepV = nullptr) {
- if (CGM.getCodeGenOpts().hasProfileClangInstr() &&
- !CurFn->hasFnAttribute(llvm::Attribute::NoProfile))
+ if (CGM.getCodeGenOpts().hasProfileClangInstr())
PGO.emitCounterIncrement(Builder, S, StepV);
PGO.setCurrentStmt(S);
}