SlotMapping.h 939 B

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef LLVM_ASMPARSER_SLOTMAPPING_H
  14. #define LLVM_ASMPARSER_SLOTMAPPING_H
  15. #include "llvm/IR/TrackingMDRef.h"
  16. #include <map>
  17. #include <vector>
  18. namespace llvm {
  19. class GlobalValue;
  20. /// This struct contains the mapping from the slot numbers to unnamed metadata
  21. /// nodes and global values.
  22. struct SlotMapping {
  23. std::vector<GlobalValue *> GlobalValues;
  24. std::map<unsigned, TrackingMDNodeRef> MetadataNodes;
  25. };
  26. } // end namespace llvm
  27. #endif