summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/NameMapBuilder.cpp
blob: fe033c368e7a4e705602519d7ca7a4a668300096 (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
26
//===- NameMapBuilder.cpp - PDB Name Map Builder ----------------*- 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/PDB/Raw/NameMapBuilder.h"

#include "llvm/DebugInfo/PDB/Raw/NameMap.h"

using namespace llvm;
using namespace llvm::pdb;

NameMapBuilder::NameMapBuilder() {}

Expected<std::unique_ptr<NameMap>> NameMapBuilder::build() {
  return llvm::make_unique<NameMap>();
}

uint32_t NameMapBuilder::calculateSerializedLength() const {
  // For now we write an empty name map, nothing else.
  return 5 * sizeof(uint32_t);
}
OpenPOWER on IntegriCloud