- if (Address == -1ULL) {
- outs() << Filename
- << ":\tfile format " << Obj->getFileFormatName() << "\n\n";
- // Dump the complete DWARF structure.
- DICtx->dump(outs(), DumpType);
- } else {
- // Print line info for the specified address.
- int SpecFlags = DILineInfoSpecifier::FileLineInfo |
- DILineInfoSpecifier::AbsoluteFilePath;
- if (PrintFunctions)
- SpecFlags |= DILineInfoSpecifier::FunctionName;
- if (PrintInlining) {
- DIInliningInfo InliningInfo =
- DICtx->getInliningInfoForAddress(Address, SpecFlags);
- uint32_t n = InliningInfo.getNumberOfFrames();
- if (n == 0) {
- // Print one empty debug line info in any case.
- PrintDILineInfo(DILineInfo());
- } else {
- for (uint32_t i = 0; i < n; i++) {
- DILineInfo dli = InliningInfo.getFrame(i);
- PrintDILineInfo(dli);
- }
- }
- } else {
- DILineInfo dli = DICtx->getLineInfoForAddress(Address, SpecFlags);
- PrintDILineInfo(dli);
- }
- }
+ outs() << Filename
+ << ":\tfile format " << Obj.getFileFormatName() << "\n\n";
+ // Dump the complete DWARF structure.
+ DICtx->dump(outs(), DumpType);