[llvm-commits] [llvm] r107138 - /llvm/trunk/lib/MC/MCAssembler.cpp

Duncan Sands baldrick at free.fr
Tue Jun 29 06:30:08 PDT 2010


Author: baldrick
Date: Tue Jun 29 08:30:08 2010
New Revision: 107138

URL: http://llvm.org/viewvc/llvm-project?rev=107138&view=rev
Log:
The variable ValueSize is set to 1 on both code paths, and then
ignored!  Remove it.

Modified:
    llvm/trunk/lib/MC/MCAssembler.cpp

Modified: llvm/trunk/lib/MC/MCAssembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAssembler.cpp?rev=107138&r1=107137&r2=107138&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAssembler.cpp (original)
+++ llvm/trunk/lib/MC/MCAssembler.cpp Tue Jun 29 08:30:08 2010
@@ -684,12 +684,8 @@
   for (MCAssembler::iterator it = begin(), ie = end(); it != ie; ++it) {
     // Create dummy fragments to eliminate any empty sections, this simplifies
     // layout.
-    if (it->getFragmentList().empty()) {
-      unsigned ValueSize = 1;
-      if (getBackend().isVirtualSection(it->getSection()))
-        ValueSize = 1;
+    if (it->getFragmentList().empty())
       new MCFillFragment(0, 1, 0, it);
-    }
 
     it->setOrdinal(SectionIndex++);
   }





More information about the llvm-commits mailing list