aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-09-09 22:35:23 +0000
committerManman Ren <manman.ren@gmail.com>2013-09-09 22:35:23 +0000
commite72aba9c0ff5b19128f54b09a36d2f4c2a53b40b (patch)
treece4a3987eb6b832a55395bf05be09aac775f2c54 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parentee50a46026a8e131bd1b82df729d1c45f856d0ec (diff)
downloadexternal_llvm-e72aba9c0ff5b19128f54b09a36d2f4c2a53b40b.zip
external_llvm-e72aba9c0ff5b19128f54b09a36d2f4c2a53b40b.tar.gz
external_llvm-e72aba9c0ff5b19128f54b09a36d2f4c2a53b40b.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 1a527f2..4893c25 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -919,7 +919,7 @@ static bool isTypeUnitScoped(DIType Ty, const DwarfDebug *DD) {
// Don't generate a hash for anything scoped inside a function.
if (Parent.isSubprogram())
return false;
- Parent = DD->getScopeContext(Parent);
+ Parent = DD->resolve(Parent.getContext());
}
return true;
}