[llvm-commits] [llvm] r144111 - /llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp

Michael J. Spencer bigcheesegs at gmail.com
Tue Nov 8 11:52:32 PST 2011


Author: mspencer
Date: Tue Nov  8 13:52:32 2011
New Revision: 144111

URL: http://llvm.org/viewvc/llvm-project?rev=144111&view=rev
Log:
MC/COFF: Correctly emit the size of an empty string table.

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

Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=144111&r1=144110&r2=144111&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Tue Nov  8 13:52:32 2011
@@ -281,6 +281,7 @@
   // The string table data begins with the length of the entire string table
   // including the length header. Allocate space for this header.
   Data.resize(4);
+  update_length();
 }
 
 size_t StringTable::size() const {





More information about the llvm-commits mailing list