LLVM  3.7.0
SlotMapping.h
Go to the documentation of this file.
1 //===-- SlotMapping.h - Slot number mapping for unnamed values --*- 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 // This file contains the declaration of the SlotMapping struct.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_ASMPARSER_SLOTMAPPING_H
15 #define LLVM_ASMPARSER_SLOTMAPPING_H
16 
17 #include "llvm/IR/TrackingMDRef.h"
18 #include <map>
19 #include <vector>
20 
21 namespace llvm {
22 
23 class GlobalValue;
24 
25 /// This struct contains the mapping from the slot numbers to unnamed metadata
26 /// nodes and global values.
27 struct SlotMapping {
28  std::vector<GlobalValue *> GlobalValues;
29  std::map<unsigned, TrackingMDNodeRef> MetadataNodes;
30 };
31 
32 } // end namespace llvm
33 
34 #endif
std::map< unsigned, TrackingMDNodeRef > MetadataNodes
Definition: SlotMapping.h:29
std::vector< GlobalValue * > GlobalValues
Definition: SlotMapping.h:28
This struct contains the mapping from the slot numbers to unnamed metadata nodes and global values...
Definition: SlotMapping.h:27