mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Rename variable to be more comprehensible and follow naming convention
llvm-svn: 173460
This commit is contained in:
parent
429ac6dc9a
commit
a3c71c2965
@ -69,13 +69,13 @@ static void DumpInput(const StringRef &Filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OwningPtr<ObjectFile> Obj(ObjectFile::createObjectFile(Buff.take()));
|
OwningPtr<ObjectFile> Obj(ObjectFile::createObjectFile(Buff.take()));
|
||||||
OwningPtr<DIContext> dictx(DIContext::getDWARFContext(Obj.get()));
|
OwningPtr<DIContext> DICtx(DIContext::getDWARFContext(Obj.get()));
|
||||||
|
|
||||||
if (Address == -1ULL) {
|
if (Address == -1ULL) {
|
||||||
outs() << Filename
|
outs() << Filename
|
||||||
<< ":\tfile format " << Obj->getFileFormatName() << "\n\n";
|
<< ":\tfile format " << Obj->getFileFormatName() << "\n\n";
|
||||||
// Dump the complete DWARF structure.
|
// Dump the complete DWARF structure.
|
||||||
dictx->dump(outs());
|
DICtx->dump(outs());
|
||||||
} else {
|
} else {
|
||||||
// Print line info for the specified address.
|
// Print line info for the specified address.
|
||||||
int SpecFlags = DILineInfoSpecifier::FileLineInfo |
|
int SpecFlags = DILineInfoSpecifier::FileLineInfo |
|
||||||
@ -84,7 +84,7 @@ static void DumpInput(const StringRef &Filename) {
|
|||||||
SpecFlags |= DILineInfoSpecifier::FunctionName;
|
SpecFlags |= DILineInfoSpecifier::FunctionName;
|
||||||
if (PrintInlining) {
|
if (PrintInlining) {
|
||||||
DIInliningInfo InliningInfo =
|
DIInliningInfo InliningInfo =
|
||||||
dictx->getInliningInfoForAddress(Address, SpecFlags);
|
DICtx->getInliningInfoForAddress(Address, SpecFlags);
|
||||||
uint32_t n = InliningInfo.getNumberOfFrames();
|
uint32_t n = InliningInfo.getNumberOfFrames();
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
// Print one empty debug line info in any case.
|
// Print one empty debug line info in any case.
|
||||||
@ -96,7 +96,7 @@ static void DumpInput(const StringRef &Filename) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
DILineInfo dli = dictx->getLineInfoForAddress(Address, SpecFlags);
|
DILineInfo dli = DICtx->getLineInfoForAddress(Address, SpecFlags);
|
||||||
PrintDILineInfo(dli);
|
PrintDILineInfo(dli);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user