diff options
| author | 2017-10-04 21:16:55 +0000 | |
|---|---|---|
| committer | 2017-10-04 21:16:55 +0000 | |
| commit | 8911671334afc860f09c7a70d1b1b93c0ed9b99b (patch) | |
| tree | 3000ea96a0c8979ce9d1abe343d36201a8fc0c88 /gnu/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp | |
| parent | Due to changes in LLD where sections are sorted in a different way, (diff) | |
| download | wireguard-openbsd-8911671334afc860f09c7a70d1b1b93c0ed9b99b.tar.xz wireguard-openbsd-8911671334afc860f09c7a70d1b1b93c0ed9b99b.zip | |
Tedu files that got removed in LLVM 5.0.0.
Diffstat (limited to 'gnu/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp')
| -rw-r--r-- | gnu/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/gnu/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp b/gnu/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp deleted file mode 100644 index 768ebaa1c98..00000000000 --- a/gnu/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp +++ /dev/null @@ -1,45 +0,0 @@ -//===- ModuleSubstream.cpp --------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "llvm/DebugInfo/CodeView/ModuleSubstream.h" - -#include "llvm/DebugInfo/MSF/StreamReader.h" - -using namespace llvm; -using namespace llvm::codeview; -using namespace llvm::msf; - -ModuleSubstream::ModuleSubstream() : Kind(ModuleSubstreamKind::None) {} - -ModuleSubstream::ModuleSubstream(ModuleSubstreamKind Kind, - ReadableStreamRef Data) - : Kind(Kind), Data(Data) {} - -Error ModuleSubstream::initialize(ReadableStreamRef Stream, - ModuleSubstream &Info) { - const ModuleSubsectionHeader *Header; - StreamReader Reader(Stream); - if (auto EC = Reader.readObject(Header)) - return EC; - - ModuleSubstreamKind Kind = - static_cast<ModuleSubstreamKind>(uint32_t(Header->Kind)); - if (auto EC = Reader.readStreamRef(Info.Data, Header->Length)) - return EC; - Info.Kind = Kind; - return Error::success(); -} - -uint32_t ModuleSubstream::getRecordLength() const { - return sizeof(ModuleSubsectionHeader) + Data.getLength(); -} - -ModuleSubstreamKind ModuleSubstream::getSubstreamKind() const { return Kind; } - -ReadableStreamRef ModuleSubstream::getRecordData() const { return Data; } |
