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 | 3eb9dffc895ae6106a572381b834b9be3d0c1e25 (patch) | |
tree | 6ac29a143d99dc4d128284990004c255957e5377 /llvm/lib/IR/DebugInfo.cpp | |
parent | 23d2f6989e056fc835470e61c4dde07b78f363db (diff) | |
download | bcm5719-llvm-3eb9dffc895ae6106a572381b834b9be3d0c1e25.tar.gz bcm5719-llvm-3eb9dffc895ae6106a572381b834b9be3d0c1e25.zip |
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.
llvm-svn: 190325
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 7f56f2fb1f9..4546098bc3d 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -942,19 +942,6 @@ DICompositeType llvm::getDICompositeType(DIType T) { return DICompositeType(); } -/// isSubprogramContext - Return true if Context is either a subprogram -/// or another context nested inside a subprogram. -bool llvm::isSubprogramContext(const MDNode *Context) { - if (!Context) - return false; - DIDescriptor D(Context); - if (D.isSubprogram()) - return true; - if (D.isType()) - return isSubprogramContext(DIType(Context).getContext()); - return false; -} - /// Update DITypeIdentifierMap by going through retained types of each CU. DITypeIdentifierMap llvm::generateDITypeIdentifierMap( const NamedMDNode *CU_Nodes) { |