summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-10 18:40:01 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-10 18:40:01 +0000
commitc50fa1114b75ae659aed77f66fa8a449adea4336 (patch)
tree598b2f24b2b8466166cae64310a1b01d3ea2fbc2 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parent7c87b43d28f134f3902261786a62f309e99538c4 (diff)
downloadbcm5719-llvm-c50fa1114b75ae659aed77f66fa8a449adea4336.tar.gz
bcm5719-llvm-c50fa1114b75ae659aed77f66fa8a449adea4336.zip
Debug Info: In DIBuilder, the context field of subprogram is updated to use
DIScopeRef. A paired commit at clang is required due to changes to DIBuilder. llvm-svn: 192378
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index b8bc0a90c31..f91f54e773c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -1300,7 +1300,7 @@ DIE *CompileUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
// Construct the context before querying for the existence of the DIE in case
// such construction creates the DIE (as is the case for member function
// declarations).
- DIE *ContextDIE = getOrCreateContextDIE(SP.getContext());
+ DIE *ContextDIE = getOrCreateContextDIE(resolve(SP.getContext()));
if (!ContextDIE)
ContextDIE = CUDie.get();
OpenPOWER on IntegriCloud