diff options
author | Zachary Turner <zturner@google.com> | 2016-12-16 19:25:23 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-12-16 19:25:23 +0000 |
commit | d0fffd1d1405823e4dc1a4ad16e007e3bdd4bf69 (patch) | |
tree | 4a91b07fa45157e47cd0d48f62f5708c6705ff52 /llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp | |
parent | 242b46aa590d04ef870a1bf2ea611f769bc748d2 (diff) | |
download | bcm5719-llvm-d0fffd1d1405823e4dc1a4ad16e007e3bdd4bf69.tar.gz bcm5719-llvm-d0fffd1d1405823e4dc1a4ad16e007e3bdd4bf69.zip |
Revert "[CodeView] Hook CodeViewRecordIO for reading/writing symbols."
This reverts commit r289978, which is failing due to some rebase/merge
issues.
llvm-svn: 289981
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp b/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp index 9bd85cf9dc6..19facaec9f0 100644 --- a/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp +++ b/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp @@ -75,16 +75,6 @@ Error CodeViewRecordIO::mapByteVectorTail(ArrayRef<uint8_t> &Bytes) { return Error::success(); } -Error CodeViewRecordIO::mapByteVectorTail(std::vector<uint8_t> &Bytes) { - ArrayRef<uint8_t> BytesRef(Bytes); - if (auto EC = mapByteVectorTail(BytesRef)) - return EC; - if (!isWriting()) - Bytes.assign(BytesRef.begin(), BytesRef.end()); - - return Error::success(); -} - Error CodeViewRecordIO::mapInteger(TypeIndex &TypeInd) { if (isWriting()) { if (auto EC = Writer->writeInteger(TypeInd.getIndex())) @@ -170,27 +160,6 @@ Error CodeViewRecordIO::mapGuid(StringRef &Guid) { return Error::success(); } -Error CodeViewRecordIO::mapStringZVectorZ(std::vector<StringRef> &Value) { - if (isWriting()) { - for (auto V : Value) { - if (auto EC = mapStringZ(V)) - return EC; - } - if (auto EC = Writer->writeInteger(uint8_t(0))) - return EC; - } else { - StringRef S; - if (auto EC = mapStringZ(S)) - return EC; - while (!S.empty()) { - Value.push_back(S); - if (auto EC = mapStringZ(S)) - return EC; - }; - } - return Error::success(); -} - Error CodeViewRecordIO::writeEncodedSignedInteger(const int64_t &Value) { assert(Value < 0 && "Encoded integer is not signed!"); if (Value >= std::numeric_limits<int8_t>::min()) { |