diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-22 00:03:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-22 00:03:40 +0000 |
commit | 7255a2d997b15beae82e627052fdb1b2474495c2 (patch) | |
tree | 63ef52287521415eca80d519c06a565f6fd0ba1a /lib/CodeGen/CodeGenFunction.h | |
parent | 43dec6bbde2d0a16c35978983761c8b7030c8e18 (diff) |
implement support for -finstrument-functions, patch by Nelson
Elhage!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 0fdb60ccbb..f797c2c4ff 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -566,6 +566,15 @@ public: void EmitDtorEpilogue(const CXXDestructorDecl *Dtor, CXXDtorType Type); + /// ShouldInstrumentFunction - Return true if the current function should be + /// instrumented with __cyg_profile_func_* calls + bool ShouldInstrumentFunction(); + + /// EmitFunctionInstrumentation - Emit LLVM code to call the specified + /// instrumentation function with the current function and the call site, if + /// function instrumentation is enabled. + void EmitFunctionInstrumentation(const char *Fn); + /// 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. |