diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-09-09 19:05:21 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-09-09 19:05:21 +0000 |
commit | 02d296759cd53f2d6081fd307c4d81cc41f2c9ed (patch) | |
tree | c396f2bb1823e85ef450de27311edb7c8234ab49 /lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 7f2576ddb0ae5269fb65e77b4d73db21e2b5bfe5 (diff) | |
download | llvm-02d296759cd53f2d6081fd307c4d81cc41f2c9ed.tar.gz llvm-02d296759cd53f2d6081fd307c4d81cc41f2c9ed.tar.bz2 llvm-02d296759cd53f2d6081fd307c4d81cc41f2c9ed.tar.xz |
Debug Info: Move isSubprogramContext from DebugInfo to DwarfDebug.
This helper function needs the type identifier map when we switch
DIType::getContext to return DIScopeRef instead of DIScope.
Since isSubprogramContext is used by DwarfDebug only, We move it to DwarfDebug
to have easy access to the map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index 5ccaf0fa48..f8c27d950e 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -686,6 +686,10 @@ public: /// Find the MDNode for the given scope reference. DIScope resolve(DIScopeRef SRef) const; + /// isSubprogramContext - Return true if Context is either a subprogram + /// or another context nested inside a subprogram. + bool isSubprogramContext(const MDNode *Context); + }; } // End of namespace llvm |