blob: 533242fdb819b97f18c69f87a446fa455ec6d501 [file] [log] [blame]
Zachary Turner0a43efe2016-04-25 17:38:08 +00001//===- PDBFile.cpp - Low level interface to a PDB file ----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
Zachary Turnerd8447992016-06-07 05:28:55 +000011
Zachary Turner0a43efe2016-04-25 17:38:08 +000012#include "llvm/ADT/ArrayRef.h"
Zachary Turnera3225b02016-07-29 20:56:36 +000013#include "llvm/DebugInfo/MSF/StreamArray.h"
14#include "llvm/DebugInfo/MSF/StreamInterface.h"
15#include "llvm/DebugInfo/MSF/StreamReader.h"
16#include "llvm/DebugInfo/MSF/StreamWriter.h"
Zachary Turner2f09b502016-04-29 17:28:47 +000017#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
18#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
Zachary Turner3df1bfa2016-06-03 05:52:57 +000019#include "llvm/DebugInfo/PDB/Raw/NameHashTable.h"
Rui Ueyama1f6b6e22016-05-13 21:21:53 +000020#include "llvm/DebugInfo/PDB/Raw/PublicsStream.h"
Zachary Turner819e77d2016-05-06 20:51:57 +000021#include "llvm/DebugInfo/PDB/Raw/RawError.h"
Rui Ueyama0fcd8262016-05-20 19:55:17 +000022#include "llvm/DebugInfo/PDB/Raw/SymbolStream.h"
Zachary Turnerf5c59652016-05-03 00:28:21 +000023#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
Zachary Turner0a43efe2016-04-25 17:38:08 +000024#include "llvm/Support/Endian.h"
Zachary Turner1dc9fd32016-06-14 20:48:36 +000025#include "llvm/Support/FileOutputBuffer.h"
Zachary Turner0a43efe2016-04-25 17:38:08 +000026#include "llvm/Support/MemoryBuffer.h"
27
28using namespace llvm;
Zachary Turnerb84faa82016-06-10 05:10:19 +000029using namespace llvm::codeview;
Zachary Turnerbac69d32016-07-22 19:56:05 +000030using namespace llvm::msf;
Zachary Turner2f09b502016-04-29 17:28:47 +000031using namespace llvm::pdb;
Zachary Turner0a43efe2016-04-25 17:38:08 +000032
33namespace {
Zachary Turnerb84faa82016-06-10 05:10:19 +000034typedef FixedStreamArray<support::ulittle32_t> ulittle_array;
Zachary Turner0a43efe2016-04-25 17:38:08 +000035}
36
Zachary Turnerd66889c2016-07-28 19:12:28 +000037PDBFile::PDBFile(std::unique_ptr<ReadableStream> PdbFileBuffer,
Zachary Turnere109dc62016-07-22 19:56:26 +000038 BumpPtrAllocator &Allocator)
Zachary Turnere4a4f332016-07-22 19:56:33 +000039 : Allocator(Allocator), Buffer(std::move(PdbFileBuffer)) {}
Zachary Turner0a43efe2016-04-25 17:38:08 +000040
41PDBFile::~PDBFile() {}
42
Zachary Turnerd66889c2016-07-28 19:12:28 +000043uint32_t PDBFile::getBlockSize() const { return ContainerLayout.SB->BlockSize; }
Zachary Turner0a43efe2016-04-25 17:38:08 +000044
Zachary Turnere4a4f332016-07-22 19:56:33 +000045uint32_t PDBFile::getFreeBlockMapBlock() const {
Zachary Turnerd66889c2016-07-28 19:12:28 +000046 return ContainerLayout.SB->FreeBlockMapBlock;
Zachary Turnere4a4f332016-07-22 19:56:33 +000047}
Zachary Turner0a43efe2016-04-25 17:38:08 +000048
Zachary Turnerd66889c2016-07-28 19:12:28 +000049uint32_t PDBFile::getBlockCount() const {
50 return ContainerLayout.SB->NumBlocks;
51}
Zachary Turner0a43efe2016-04-25 17:38:08 +000052
Zachary Turnere4a4f332016-07-22 19:56:33 +000053uint32_t PDBFile::getNumDirectoryBytes() const {
Zachary Turnerd66889c2016-07-28 19:12:28 +000054 return ContainerLayout.SB->NumDirectoryBytes;
Zachary Turnere4a4f332016-07-22 19:56:33 +000055}
Zachary Turner0a43efe2016-04-25 17:38:08 +000056
Zachary Turnere4a4f332016-07-22 19:56:33 +000057uint32_t PDBFile::getBlockMapIndex() const {
Zachary Turnerd66889c2016-07-28 19:12:28 +000058 return ContainerLayout.SB->BlockMapAddr;
Zachary Turnere4a4f332016-07-22 19:56:33 +000059}
Zachary Turner0a43efe2016-04-25 17:38:08 +000060
Zachary Turnerd66889c2016-07-28 19:12:28 +000061uint32_t PDBFile::getUnknown1() const { return ContainerLayout.SB->Unknown1; }
Zachary Turner0a43efe2016-04-25 17:38:08 +000062
63uint32_t PDBFile::getNumDirectoryBlocks() const {
Zachary Turnerd66889c2016-07-28 19:12:28 +000064 return msf::bytesToBlocks(ContainerLayout.SB->NumDirectoryBytes,
65 ContainerLayout.SB->BlockSize);
Zachary Turner0a43efe2016-04-25 17:38:08 +000066}
67
68uint64_t PDBFile::getBlockMapOffset() const {
Zachary Turnerd66889c2016-07-28 19:12:28 +000069 return (uint64_t)ContainerLayout.SB->BlockMapAddr *
70 ContainerLayout.SB->BlockSize;
Zachary Turner0a43efe2016-04-25 17:38:08 +000071}
72
Zachary Turnerd66889c2016-07-28 19:12:28 +000073uint32_t PDBFile::getNumStreams() const {
74 return ContainerLayout.StreamSizes.size();
75}
Zachary Turner0a43efe2016-04-25 17:38:08 +000076
77uint32_t PDBFile::getStreamByteSize(uint32_t StreamIndex) const {
Zachary Turnerd66889c2016-07-28 19:12:28 +000078 return ContainerLayout.StreamSizes[StreamIndex];
Zachary Turner0a43efe2016-04-25 17:38:08 +000079}
80
Zachary Turnerd8447992016-06-07 05:28:55 +000081ArrayRef<support::ulittle32_t>
Zachary Turner0a43efe2016-04-25 17:38:08 +000082PDBFile::getStreamBlockList(uint32_t StreamIndex) const {
Zachary Turnerd66889c2016-07-28 19:12:28 +000083 return ContainerLayout.StreamMap[StreamIndex];
Zachary Turner0a43efe2016-04-25 17:38:08 +000084}
85
David Majnemer1b79e9a2016-07-10 05:32:05 +000086uint32_t PDBFile::getFileSize() const { return Buffer->getLength(); }
Zachary Turner1dc9fd32016-06-14 20:48:36 +000087
David Majnemer6211b1f2016-07-10 03:34:47 +000088Expected<ArrayRef<uint8_t>> PDBFile::getBlockData(uint32_t BlockIndex,
89 uint32_t NumBytes) const {
Zachary Turnerfaa554b2016-07-15 22:16:56 +000090 uint64_t StreamBlockOffset = msf::blockToOffset(BlockIndex, getBlockSize());
Zachary Turner0a43efe2016-04-25 17:38:08 +000091
Zachary Turnerb84faa82016-06-10 05:10:19 +000092 ArrayRef<uint8_t> Result;
93 if (auto EC = Buffer->readBytes(StreamBlockOffset, NumBytes, Result))
David Majnemer6211b1f2016-07-10 03:34:47 +000094 return std::move(EC);
Zachary Turnerb84faa82016-06-10 05:10:19 +000095 return Result;
Zachary Turner0a43efe2016-04-25 17:38:08 +000096}
97
Zachary Turner5acb4ac2016-06-10 05:09:12 +000098Error PDBFile::setBlockData(uint32_t BlockIndex, uint32_t Offset,
99 ArrayRef<uint8_t> Data) const {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000100 return make_error<RawError>(raw_error_code::not_writable,
101 "PDBFile is immutable");
Zachary Turner5acb4ac2016-06-10 05:09:12 +0000102}
103
Zachary Turner819e77d2016-05-06 20:51:57 +0000104Error PDBFile::parseFileHeaders() {
Zachary Turnerb84faa82016-06-10 05:10:19 +0000105 StreamReader Reader(*Buffer);
Zachary Turnerc59261c2016-05-25 03:53:16 +0000106
Rui Ueyama7a5cdc62016-07-29 21:38:00 +0000107 // Initialize SB.
Zachary Turnere4a4f332016-07-22 19:56:33 +0000108 const msf::SuperBlock *SB = nullptr;
Zachary Turnerb84faa82016-06-10 05:10:19 +0000109 if (auto EC = Reader.readObject(SB)) {
110 consumeError(std::move(EC));
Zachary Turner819e77d2016-05-06 20:51:57 +0000111 return make_error<RawError>(raw_error_code::corrupt_file,
112 "Does not contain superblock");
Zachary Turnerb84faa82016-06-10 05:10:19 +0000113 }
Zachary Turner0a43efe2016-04-25 17:38:08 +0000114
Zachary Turnere4a4f332016-07-22 19:56:33 +0000115 if (auto EC = msf::validateSuperBlock(*SB))
Zachary Turnerab58ae82016-06-30 17:43:00 +0000116 return EC;
Zachary Turner819e77d2016-05-06 20:51:57 +0000117
Zachary Turnere4a4f332016-07-22 19:56:33 +0000118 if (Buffer->getLength() % SB->BlockSize != 0)
119 return make_error<RawError>(raw_error_code::corrupt_file,
120 "File size is not a multiple of block size");
Zachary Turnerd66889c2016-07-28 19:12:28 +0000121 ContainerLayout.SB = SB;
Zachary Turnere4a4f332016-07-22 19:56:33 +0000122
Rui Ueyama7a5cdc62016-07-29 21:38:00 +0000123 // Initialize Free Page Map.
124 ContainerLayout.FreePageMap.resize(getBlockSize() * 8);
125 uint64_t FPMOffset = SB->FreeBlockMapBlock * getBlockSize();
126 ArrayRef<uint8_t> FPMBlock;
127 if (auto EC = Buffer->readBytes(FPMOffset, getBlockSize(), FPMBlock))
128 return EC;
129 for (uint32_t I = 0, E = getBlockSize() * 8; I != E; ++I)
130 if (FPMBlock[I / 8] & (1 << (I % 8)))
131 ContainerLayout.FreePageMap[I] = true;
132
Zachary Turnerab58ae82016-06-30 17:43:00 +0000133 Reader.setOffset(getBlockMapOffset());
Zachary Turnerd66889c2016-07-28 19:12:28 +0000134 if (auto EC = Reader.readArray(ContainerLayout.DirectoryBlocks,
135 getNumDirectoryBlocks()))
Zachary Turnerab58ae82016-06-30 17:43:00 +0000136 return EC;
Zachary Turner0a43efe2016-04-25 17:38:08 +0000137
Zachary Turner819e77d2016-05-06 20:51:57 +0000138 return Error::success();
Zachary Turner0a43efe2016-04-25 17:38:08 +0000139}
140
Zachary Turner819e77d2016-05-06 20:51:57 +0000141Error PDBFile::parseStreamData() {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000142 assert(ContainerLayout.SB);
Zachary Turnerd8447992016-06-07 05:28:55 +0000143 if (DirectoryStream)
144 return Error::success();
Zachary Turner0a43efe2016-04-25 17:38:08 +0000145
Zachary Turner0a43efe2016-04-25 17:38:08 +0000146 uint32_t NumStreams = 0;
Zachary Turner0a43efe2016-04-25 17:38:08 +0000147
Zachary Turnerd8447992016-06-07 05:28:55 +0000148 // Normally you can't use a MappedBlockStream without having fully parsed the
149 // PDB file, because it accesses the directory and various other things, which
150 // is exactly what we are attempting to parse. By specifying a custom
151 // subclass of IPDBStreamData which only accesses the fields that have already
152 // been parsed, we can avoid this and reuse MappedBlockStream.
Zachary Turnerd66889c2016-07-28 19:12:28 +0000153 auto DS = MappedBlockStream::createDirectoryStream(ContainerLayout, *Buffer);
154 StreamReader Reader(*DS);
Zachary Turnerd8447992016-06-07 05:28:55 +0000155 if (auto EC = Reader.readInteger(NumStreams))
156 return EC;
Zachary Turner0a43efe2016-04-25 17:38:08 +0000157
Zachary Turnerd66889c2016-07-28 19:12:28 +0000158 if (auto EC = Reader.readArray(ContainerLayout.StreamSizes, NumStreams))
Zachary Turnerd8447992016-06-07 05:28:55 +0000159 return EC;
160 for (uint32_t I = 0; I < NumStreams; ++I) {
Reid Kleckner5aba52f2016-06-22 22:42:24 +0000161 uint32_t StreamSize = getStreamByteSize(I);
162 // FIXME: What does StreamSize ~0U mean?
David Majnemer9efba742016-05-27 16:16:48 +0000163 uint64_t NumExpectedStreamBlocks =
Zachary Turnere4a4f332016-07-22 19:56:33 +0000164 StreamSize == UINT32_MAX
165 ? 0
Zachary Turnerd66889c2016-07-28 19:12:28 +0000166 : msf::bytesToBlocks(StreamSize, ContainerLayout.SB->BlockSize);
Zachary Turnerb84faa82016-06-10 05:10:19 +0000167
168 // For convenience, we store the block array contiguously. This is because
169 // if someone calls setStreamMap(), it is more convenient to be able to call
170 // it with an ArrayRef instead of setting up a StreamRef. Since the
171 // DirectoryStream is cached in the class and thus lives for the life of the
172 // class, we can be guaranteed that readArray() will return a stable
173 // reference, even if it has to allocate from its internal pool.
174 ArrayRef<support::ulittle32_t> Blocks;
Zachary Turnerd8447992016-06-07 05:28:55 +0000175 if (auto EC = Reader.readArray(Blocks, NumExpectedStreamBlocks))
176 return EC;
David Majnemer1b79e9a2016-07-10 05:32:05 +0000177 for (uint32_t Block : Blocks) {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000178 uint64_t BlockEndOffset =
179 (uint64_t)(Block + 1) * ContainerLayout.SB->BlockSize;
David Majnemer1b79e9a2016-07-10 05:32:05 +0000180 if (BlockEndOffset > getFileSize())
181 return make_error<RawError>(raw_error_code::corrupt_file,
182 "Stream block map is corrupt.");
183 }
Zachary Turnerd66889c2016-07-28 19:12:28 +0000184 ContainerLayout.StreamMap.push_back(Blocks);
David Majnemer9efba742016-05-27 16:16:48 +0000185 }
186
Zachary Turner0a43efe2016-04-25 17:38:08 +0000187 // We should have read exactly SB->NumDirectoryBytes bytes.
Zachary Turnerd8447992016-06-07 05:28:55 +0000188 assert(Reader.bytesRemaining() == 0);
Zachary Turnerd66889c2016-07-28 19:12:28 +0000189 DirectoryStream = std::move(DS);
Zachary Turner819e77d2016-05-06 20:51:57 +0000190 return Error::success();
Zachary Turner0a43efe2016-04-25 17:38:08 +0000191}
192
Zachary Turnerd8447992016-06-07 05:28:55 +0000193llvm::ArrayRef<support::ulittle32_t> PDBFile::getDirectoryBlockArray() const {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000194 return ContainerLayout.DirectoryBlocks;
Zachary Turner0a43efe2016-04-25 17:38:08 +0000195}
Zachary Turner53a65ba2016-04-26 18:42:34 +0000196
Zachary Turner819e77d2016-05-06 20:51:57 +0000197Expected<InfoStream &> PDBFile::getPDBInfoStream() {
Zachary Turner2f09b502016-04-29 17:28:47 +0000198 if (!Info) {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000199 auto InfoS = MappedBlockStream::createIndexedStream(ContainerLayout,
200 *Buffer, StreamPDB);
201 auto TempInfo = llvm::make_unique<InfoStream>(std::move(InfoS));
Zachary Turnera1657a92016-06-08 17:26:39 +0000202 if (auto EC = TempInfo->reload())
Zachary Turner819e77d2016-05-06 20:51:57 +0000203 return std::move(EC);
Zachary Turnera1657a92016-06-08 17:26:39 +0000204 Info = std::move(TempInfo);
Zachary Turner53a65ba2016-04-26 18:42:34 +0000205 }
Zachary Turner2f09b502016-04-29 17:28:47 +0000206 return *Info;
Zachary Turner53a65ba2016-04-26 18:42:34 +0000207}
208
Zachary Turner819e77d2016-05-06 20:51:57 +0000209Expected<DbiStream &> PDBFile::getPDBDbiStream() {
Zachary Turner2f09b502016-04-29 17:28:47 +0000210 if (!Dbi) {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000211 auto DbiS = MappedBlockStream::createIndexedStream(ContainerLayout, *Buffer,
212 StreamDBI);
213 auto TempDbi = llvm::make_unique<DbiStream>(*this, std::move(DbiS));
Zachary Turnera1657a92016-06-08 17:26:39 +0000214 if (auto EC = TempDbi->reload())
Zachary Turner819e77d2016-05-06 20:51:57 +0000215 return std::move(EC);
Zachary Turnera1657a92016-06-08 17:26:39 +0000216 Dbi = std::move(TempDbi);
Zachary Turner53a65ba2016-04-26 18:42:34 +0000217 }
Zachary Turner2f09b502016-04-29 17:28:47 +0000218 return *Dbi;
Zachary Turner53a65ba2016-04-26 18:42:34 +0000219}
Zachary Turnerf5c59652016-05-03 00:28:21 +0000220
Zachary Turner819e77d2016-05-06 20:51:57 +0000221Expected<TpiStream &> PDBFile::getPDBTpiStream() {
Zachary Turnerf5c59652016-05-03 00:28:21 +0000222 if (!Tpi) {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000223 auto TpiS = MappedBlockStream::createIndexedStream(ContainerLayout, *Buffer,
224 StreamTPI);
225 auto TempTpi = llvm::make_unique<TpiStream>(*this, std::move(TpiS));
Zachary Turnera1657a92016-06-08 17:26:39 +0000226 if (auto EC = TempTpi->reload())
Zachary Turner819e77d2016-05-06 20:51:57 +0000227 return std::move(EC);
Zachary Turnera1657a92016-06-08 17:26:39 +0000228 Tpi = std::move(TempTpi);
Zachary Turnerf5c59652016-05-03 00:28:21 +0000229 }
230 return *Tpi;
231}
Rui Ueyama1f6b6e22016-05-13 21:21:53 +0000232
Zachary Turnerc9972c62016-05-25 04:35:22 +0000233Expected<TpiStream &> PDBFile::getPDBIpiStream() {
234 if (!Ipi) {
Zachary Turnerd66889c2016-07-28 19:12:28 +0000235 auto IpiS = MappedBlockStream::createIndexedStream(ContainerLayout, *Buffer,
236 StreamIPI);
237 auto TempIpi = llvm::make_unique<TpiStream>(*this, std::move(IpiS));
Zachary Turnera1657a92016-06-08 17:26:39 +0000238 if (auto EC = TempIpi->reload())
Zachary Turnerc9972c62016-05-25 04:35:22 +0000239 return std::move(EC);
Zachary Turnera1657a92016-06-08 17:26:39 +0000240 Ipi = std::move(TempIpi);
Zachary Turnerc9972c62016-05-25 04:35:22 +0000241 }
242 return *Ipi;
243}
244
Rui Ueyama1f6b6e22016-05-13 21:21:53 +0000245Expected<PublicsStream &> PDBFile::getPDBPublicsStream() {
246 if (!Publics) {
247 auto DbiS = getPDBDbiStream();
Zachary Turnera1657a92016-06-08 17:26:39 +0000248 if (!DbiS)
249 return DbiS.takeError();
250
Rui Ueyama1f6b6e22016-05-13 21:21:53 +0000251 uint32_t PublicsStreamNum = DbiS->getPublicSymbolStreamIndex();
252
Zachary Turnerd66889c2016-07-28 19:12:28 +0000253 auto PublicS = MappedBlockStream::createIndexedStream(
254 ContainerLayout, *Buffer, PublicsStreamNum);
Zachary Turnera1657a92016-06-08 17:26:39 +0000255 auto TempPublics =
Zachary Turnerd66889c2016-07-28 19:12:28 +0000256 llvm::make_unique<PublicsStream>(*this, std::move(PublicS));
Zachary Turnera1657a92016-06-08 17:26:39 +0000257 if (auto EC = TempPublics->reload())
Rui Ueyama1f6b6e22016-05-13 21:21:53 +0000258 return std::move(EC);
Zachary Turnera1657a92016-06-08 17:26:39 +0000259 Publics = std::move(TempPublics);
Rui Ueyama1f6b6e22016-05-13 21:21:53 +0000260 }
261 return *Publics;
262}
Rui Ueyama0fcd8262016-05-20 19:55:17 +0000263
264Expected<SymbolStream &> PDBFile::getPDBSymbolStream() {
265 if (!Symbols) {
266 auto DbiS = getPDBDbiStream();
Zachary Turnera1657a92016-06-08 17:26:39 +0000267 if (!DbiS)
268 return DbiS.takeError();
269
Rui Ueyama0fcd8262016-05-20 19:55:17 +0000270 uint32_t SymbolStreamNum = DbiS->getSymRecordStreamIndex();
Zachary Turnerd66889c2016-07-28 19:12:28 +0000271 auto SymbolS = MappedBlockStream::createIndexedStream(
272 ContainerLayout, *Buffer, SymbolStreamNum);
Rui Ueyama0fcd8262016-05-20 19:55:17 +0000273
Zachary Turnerd66889c2016-07-28 19:12:28 +0000274 auto TempSymbols = llvm::make_unique<SymbolStream>(std::move(SymbolS));
Zachary Turnera1657a92016-06-08 17:26:39 +0000275 if (auto EC = TempSymbols->reload())
Rui Ueyama0fcd8262016-05-20 19:55:17 +0000276 return std::move(EC);
Zachary Turnera1657a92016-06-08 17:26:39 +0000277 Symbols = std::move(TempSymbols);
Rui Ueyama0fcd8262016-05-20 19:55:17 +0000278 }
279 return *Symbols;
280}
Zachary Turner3df1bfa2016-06-03 05:52:57 +0000281
282Expected<NameHashTable &> PDBFile::getStringTable() {
283 if (!StringTable || !StringTableStream) {
Zachary Turnera1657a92016-06-08 17:26:39 +0000284 auto IS = getPDBInfoStream();
285 if (!IS)
286 return IS.takeError();
287
288 uint32_t NameStreamIndex = IS->getNamedStreamIndex("/names");
Zachary Turner3df1bfa2016-06-03 05:52:57 +0000289
290 if (NameStreamIndex == 0)
291 return make_error<RawError>(raw_error_code::no_stream);
Zachary Turnerd2b2bfe2016-06-08 00:25:08 +0000292 if (NameStreamIndex >= getNumStreams())
293 return make_error<RawError>(raw_error_code::no_stream);
Zachary Turnerd66889c2016-07-28 19:12:28 +0000294 auto NS = MappedBlockStream::createIndexedStream(ContainerLayout, *Buffer,
295 NameStreamIndex);
Zachary Turnerd2b2bfe2016-06-08 00:25:08 +0000296
Zachary Turnerd66889c2016-07-28 19:12:28 +0000297 StreamReader Reader(*NS);
Zachary Turner3df1bfa2016-06-03 05:52:57 +0000298 auto N = llvm::make_unique<NameHashTable>();
299 if (auto EC = N->load(Reader))
300 return std::move(EC);
301 StringTable = std::move(N);
Zachary Turnerd66889c2016-07-28 19:12:28 +0000302 StringTableStream = std::move(NS);
Zachary Turner3df1bfa2016-06-03 05:52:57 +0000303 }
304 return *StringTable;
305}