1 //===-- SlotMapping.h - Slot number mapping for unnamed values --*- 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 // This file contains the declaration of the SlotMapping struct.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_ASMPARSER_SLOTMAPPING_H
15 #define LLVM_ASMPARSER_SLOTMAPPING_H
17 #include "llvm/ADT/StringMap.h"
18 #include "llvm/IR/TrackingMDRef.h"
27 /// This struct contains the mappings from the slot numbers to unnamed metadata
28 /// nodes, global values and types. It also contains the mapping for the named
30 /// It can be used to save the parsing state of an LLVM IR module so that the
31 /// textual references to the values in the module can be parsed outside of the
34 std::vector<GlobalValue *> GlobalValues;
35 std::map<unsigned, TrackingMDNodeRef> MetadataNodes;
36 StringMap<Type *> NamedTypes;
37 std::map<unsigned, Type *> Types;
40 } // end namespace llvm