Debug Info: Move isSubprogramContext from DebugInfo to DwarfDebug.
authorManman Ren <manman.ren@gmail.com>
Mon, 9 Sep 2013 19:05:21 +0000 (19:05 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 9 Sep 2013 19:05:21 +0000 (19:05 +0000)
commit02d296759cd53f2d6081fd307c4d81cc41f2c9ed
treec396f2bb1823e85ef450de27311edb7c8234ab49
parent7f2576ddb0ae5269fb65e77b4d73db21e2b5bfe5
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
include/llvm/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/IR/DebugInfo.cpp