diff options
author | Zachary Turner <zturner@google.com> | 2017-06-14 06:24:24 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-06-14 06:24:24 +0000 |
commit | 0085dce221b820f4287b6a2bbf428500501ece39 (patch) | |
tree | 9db447d1534241dbb854f7fe446b332392405a0a /llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp | |
parent | 9cac9ad9d4b835f7f1da76dde865e358363e1e75 (diff) | |
download | bcm5719-llvm-0085dce221b820f4287b6a2bbf428500501ece39.tar.gz bcm5719-llvm-0085dce221b820f4287b6a2bbf428500501ece39.zip |
Revert "[codeview] Make obj2yaml/yaml2obj support .debug$S..."
This is causing failures on linux bots with an invalid stream
read. It doesn't repro in any configuration on Windows, so
reverting until I have a chance to investigate on Linux.
llvm-svn: 305371
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp index de02525270c..6e647c4b976 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp @@ -58,10 +58,6 @@ Error DebugStringTableSubsection::commit(BinaryStreamWriter &Writer) const { uint32_t Begin = Writer.getOffset(); uint32_t End = Begin + StringSize; - // Write a null string at the beginning. - if (auto EC = Writer.writeCString(StringRef())) - return EC; - for (auto &Pair : Strings) { StringRef S = Pair.getKey(); uint32_t Offset = Begin + Pair.getValue(); @@ -72,7 +68,6 @@ Error DebugStringTableSubsection::commit(BinaryStreamWriter &Writer) const { } Writer.setOffset(End); - assert((End - Begin) == StringSize); return Error::success(); } |