Remove dead variable pointed out by GCC 4.6 warnings, and reflow this a little
authorNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 05:05:29 +0000 (05:05 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 05:05:29 +0000 (05:05 +0000)
to scope a variable more tightly per llvm coding style. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130684 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/COFFObjectFile.cpp

index 30709f176b73098ba25307cd5fad5b0c79a226c2..86bf44baaeb6e6681a6462b4f27e5377b8f438c2 100644 (file)
@@ -186,11 +186,8 @@ char COFFObjectFile::getSymbolNMTypeChar(DataRefImpl Symb) const {
     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) {