llvm.org GIT mirror llvm / 172d597
Rename variable to be more comprehensible and follow naming convention git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173460 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Bendersky 6 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6868 }
6969
7070 OwningPtr Obj(ObjectFile::createObjectFile(Buff.take()));
71 OwningPtr dictx(DIContext::getDWARFContext(Obj.get()));
71 OwningPtr DICtx(DIContext::getDWARFContext(Obj.get()));
7272
7373 if (Address == -1ULL) {
7474 outs() << Filename
7575 << ":\tfile format " << Obj->getFileFormatName() << "\n\n";
7676 // Dump the complete DWARF structure.
77 dictx->dump(outs());
77 DICtx->dump(outs());
7878 } else {
7979 // Print line info for the specified address.
8080 int SpecFlags = DILineInfoSpecifier::FileLineInfo |
8383 SpecFlags |= DILineInfoSpecifier::FunctionName;
8484 if (PrintInlining) {
8585 DIInliningInfo InliningInfo =
86 dictx->getInliningInfoForAddress(Address, SpecFlags);
86 DICtx->getInliningInfoForAddress(Address, SpecFlags);
8787 uint32_t n = InliningInfo.getNumberOfFrames();
8888 if (n == 0) {
8989 // Print one empty debug line info in any case.
9595 }
9696 }
9797 } else {
98 DILineInfo dli = dictx->getLineInfoForAddress(Address, SpecFlags);
98 DILineInfo dli = DICtx->getLineInfoForAddress(Address, SpecFlags);
9999 PrintDILineInfo(dli);
100100 }
101101 }