PDBSymbolTypePointer.cpp 906 B

1234567891011121314151617181920212223242526272829
  1. //===- PDBSymbolTypePointer.cpp -----------------------------------*- 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. #include "llvm/DebugInfo/PDB/PDBSymbolTypePointer.h"
  10. #include "llvm/DebugInfo/PDB/IPDBSession.h"
  11. #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
  12. #include <utility>
  13. using namespace llvm;
  14. PDBSymbolTypePointer::PDBSymbolTypePointer(
  15. const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
  16. : PDBSymbol(PDBSession, std::move(Symbol)) {}
  17. std::unique_ptr<PDBSymbol> PDBSymbolTypePointer::getPointeeType() const {
  18. return Session.getSymbolById(getTypeId());
  19. }
  20. void PDBSymbolTypePointer::dump(PDBSymDumper &Dumper) const {
  21. Dumper.dump(*this);
  22. }