summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WinCOFFObjectWriter.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-11-08 19:52:32 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-11-08 19:52:32 +0000
commit5ca95bc56f37c1083b77f295922685bd675000cc (patch)
tree366c0cec2ea3cfc4f792eb1552ed4d1ed9452b9d /llvm/lib/MC/WinCOFFObjectWriter.cpp
parent6ea1d665a71089e313c5010d5c97c6ed2bbd9238 (diff)
downloadbcm5719-llvm-5ca95bc56f37c1083b77f295922685bd675000cc.tar.gz
bcm5719-llvm-5ca95bc56f37c1083b77f295922685bd675000cc.zip
MC/COFF: Correctly emit the size of an empty string table.
llvm-svn: 144111
Diffstat (limited to 'llvm/lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WinCOFFObjectWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp
index b15e225fc2a..4d3b59c92ac 100644
--- a/llvm/lib/MC/WinCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp
@@ -281,6 +281,7 @@ StringTable::StringTable() {
// 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 {
OpenPOWER on IntegriCloud