[llvm-commits] [llvm] r173460 - /llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Eli Bendersky
eliben at google.com
Fri Jan 25 09:06:42 PST 2013
Author: eliben
Date: Fri Jan 25 11:06:42 2013
New Revision: 173460
URL: http://llvm.org/viewvc/llvm-project?rev=173460&view=rev
Log:
Rename variable to be more comprehensible and follow naming convention
Modified:
llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Modified: llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp?rev=173460&r1=173459&r2=173460&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp (original)
+++ llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp Fri Jan 25 11:06:42 2013
@@ -69,13 +69,13 @@
}
OwningPtr<ObjectFile> Obj(ObjectFile::createObjectFile(Buff.take()));
- OwningPtr<DIContext> dictx(DIContext::getDWARFContext(Obj.get()));
+ OwningPtr<DIContext> DICtx(DIContext::getDWARFContext(Obj.get()));
if (Address == -1ULL) {
outs() << Filename
<< ":\tfile format " << Obj->getFileFormatName() << "\n\n";
// Dump the complete DWARF structure.
- dictx->dump(outs());
+ DICtx->dump(outs());
} else {
// Print line info for the specified address.
int SpecFlags = DILineInfoSpecifier::FileLineInfo |
@@ -84,7 +84,7 @@
SpecFlags |= DILineInfoSpecifier::FunctionName;
if (PrintInlining) {
DIInliningInfo InliningInfo =
- dictx->getInliningInfoForAddress(Address, SpecFlags);
+ DICtx->getInliningInfoForAddress(Address, SpecFlags);
uint32_t n = InliningInfo.getNumberOfFrames();
if (n == 0) {
// Print one empty debug line info in any case.
@@ -96,7 +96,7 @@
}
}
} else {
- DILineInfo dli = dictx->getLineInfoForAddress(Address, SpecFlags);
+ DILineInfo dli = DICtx->getLineInfoForAddress(Address, SpecFlags);
PrintDILineInfo(dli);
}
}
More information about the llvm-commits
mailing list