diff options
author | Stuart Hastings <stuart@apple.com> | 2010-06-11 20:08:44 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2010-06-11 20:08:44 +0000 |
commit | aa685d67d6746a64b517beb1b5c485e8285840d2 (patch) | |
tree | 00208119115fb514a7135c16f28a9f438d997e56 /include | |
parent | 70ffb9f4849dd03e515f900a40a8b9246bf9480b (diff) | |
download | external_llvm-aa685d67d6746a64b517beb1b5c485e8285840d2.zip external_llvm-aa685d67d6746a64b517beb1b5c485e8285840d2.tar.gz external_llvm-aa685d67d6746a64b517beb1b5c485e8285840d2.tar.bz2 |
Support for nested functions/classes in debug output. (Again.) Radar 7424645.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 473b127..d468b4e 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -56,6 +56,7 @@ namespace llvm { } GlobalVariable *getGlobalVariableField(unsigned Elt) const; + Function *getFunctionField(unsigned Elt) const; public: explicit DIDescriptor() : DbgNode(0) {} @@ -409,6 +410,8 @@ namespace llvm { /// describes - Return true if this subprogram provides debugging /// information for the function F. bool describes(const Function *F); + + Function *getFunction() const { return getFunctionField(16); } }; /// DIGlobalVariable - This is a wrapper for a global variable. @@ -658,7 +661,8 @@ namespace llvm { unsigned VIndex = 0, DIType = DIType(), bool isArtificial = 0, - bool isOptimized = false); + bool isOptimized = false, + Function *Fn = 0); /// CreateSubprogramDefinition - Create new subprogram descriptor for the /// given declaration. |