1 //===- NameMap.h - PDB Name Map ---------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBNAMEMAP_H
11 #define LLVM_DEBUGINFO_PDB_RAW_PDBNAMEMAP_H
13 #include "llvm/ADT/StringMap.h"
14 #include "llvm/ADT/StringRef.h"
15 #include "llvm/Support/Error.h"
26 friend NameMapBuilder;
31 Error load(msf::StreamReader &Stream);
33 bool tryGetValue(StringRef Name, uint32_t &Value) const;
35 iterator_range<StringMapConstIterator<uint32_t>> entries() const;
38 StringMap<uint32_t> Mapping;
41 } // end namespace pdb
42 } // end namespace llvm
44 #endif // LLVM_DEBUGINFO_PDB_RAW_PDBNAMEMAP_H