[llvm-commits] [llvm] r130684 - /llvm/trunk/lib/Object/COFFObjectFile.cpp
Nick Lewycky
nicholas at mxc.ca
Sun May 1 22:05:29 PDT 2011
Author: nicholas
Date: Mon May 2 00:05:29 2011
New Revision: 130684
URL: http://llvm.org/viewvc/llvm-project?rev=130684&view=rev
Log:
Remove dead variable pointed out by GCC 4.6 warnings, and reflow this a little
to scope a variable more tightly per llvm coding style. No functional change.
Modified:
llvm/trunk/lib/Object/COFFObjectFile.cpp
Modified: llvm/trunk/lib/Object/COFFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/COFFObjectFile.cpp?rev=130684&r1=130683&r2=130684&view=diff
==============================================================================
--- llvm/trunk/lib/Object/COFFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/COFFObjectFile.cpp Mon May 2 00:05:29 2011
@@ -186,11 +186,8 @@
return ret;
uint32_t Characteristics = 0;
- uint32_t PointerToRawData = 0;
- const coff_section *Section = getSection(symb->SectionNumber);
- if (Section) {
+ if (const coff_section *Section = getSection(symb->SectionNumber)) {
Characteristics = Section->Characteristics;
- PointerToRawData = Section->PointerToRawData;
}
switch (symb->SectionNumber) {
More information about the llvm-commits
mailing list