summaryrefslogtreecommitdiffstats
path: root/clang/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
commit178e0160b7fc5b14c664c339d7f9b18fad8bdca8 (patch)
tree82954a5fdb9fcc7e3d84a4aedba728c3fb51d645 /clang/lib/CodeGen/CodeGenFunction.h
parent89d9f360cdc5369eda8cbbee3794fa33dc629dc2 (diff)
downloadbcm5719-llvm-178e0160b7fc5b14c664c339d7f9b18fad8bdca8.tar.gz
bcm5719-llvm-178e0160b7fc5b14c664c339d7f9b18fad8bdca8.zip
Implement mcount profiling, enabled via -pg.
llvm-svn: 125282
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 19fbf5ca989..1fe1c3fda9d 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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.
OpenPOWER on IntegriCloud