aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2011-02-10 16:52:03 +0000
committerRoman Divacky <rdivacky@freebsd.org>2011-02-10 16:52:03 +0000
commitbe4c8705e499b55548467eb7adaa23cbc6edfef9 (patch)
tree180fd2910e4cbbdcd9dca8d8e7d54e347c7a3ccc /lib/CodeGen/CodeGenFunction.h
parent9186ff310cf0ad92ec7f39b2c9dcb7e848195052 (diff)
Implement mcount profiling, enabled via -pg.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 19fbf5ca98..1fe1c3fda9 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -1087,6 +1087,9 @@ public:
/// function instrumentation is enabled.
void EmitFunctionInstrumentation(const char *Fn);
+ /// EmitMCountInstrumentation - Emit call to .mcount.
+ void EmitMCountInstrumentation();
+
/// EmitFunctionProlog - Emit the target specific LLVM code to load the
/// arguments for the given function. This is also responsible for naming the
/// LLVM function arguments.