projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d76a78
)
MC/COFF: Correctly emit the size of an empty string table.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Tue, 8 Nov 2011 19:52:32 +0000
(19:52 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Tue, 8 Nov 2011 19:52:32 +0000
(19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144111
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/WinCOFFObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/WinCOFFObjectWriter.cpp
b/lib/MC/WinCOFFObjectWriter.cpp
index b15e225fc2a318de11bb98ddf5542bd1f33ab00d..4d3b59c92ac2981bf7ae7467b6820aeaee9fba30 100644
(file)
--- a/
lib/MC/WinCOFFObjectWriter.cpp
+++ b/
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 {