blob: 81303aeb8f4a006e73eb29108f4b9bc08a40b48c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//===- IndexedStreamData.cpp - Standard PDB Stream Data ---------*- 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/Msf/IndexedStreamData.h"
#include "llvm/DebugInfo/Msf/IMsfFile.h"
using namespace llvm;
using namespace llvm::msf;
IndexedStreamData::IndexedStreamData(uint32_t StreamIdx, const IMsfFile &File)
: StreamIdx(StreamIdx), File(File) {}
uint32_t IndexedStreamData::getLength() {
return File.getStreamByteSize(StreamIdx);
}
ArrayRef<support::ulittle32_t> IndexedStreamData::getStreamBlocks() {
return File.getStreamBlockList(StreamIdx);
}
|