Debug Info: move DIScope::getContext back from DwarfDebug.
authorManman Ren <manman.ren@gmail.com>
Mon, 9 Sep 2013 22:35:23 +0000 (22:35 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 9 Sep 2013 22:35:23 +0000 (22:35 +0000)
commite72aba9c0ff5b19128f54b09a36d2f4c2a53b40b
treece4a3987eb6b832a55395bf05be09aac775f2c54
parentee50a46026a8e131bd1b82df729d1c45f856d0ec
Debug Info: move DIScope::getContext back from DwarfDebug.

This partially reverts r190330. DIScope::getContext now returns DIScopeRef
instead of DIScope. We construct a DIScopeRef from DIScope when we are
dealing with subprogram, lexical block or name space.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190362 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