LLVM  7.0.0
PDBSymbolCompilandEnv.cpp
Go to the documentation of this file.
1 //===- PDBSymbolCompilandEnv.cpp - compiland env variables ------*- 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 
11 
15 
16 #include <utility>
17 
18 using namespace llvm;
19 using namespace llvm::pdb;
20 
22  const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
23  : PDBSymbol(PDBSession, std::move(Symbol)) {
25 }
26 
27 std::string PDBSymbolCompilandEnv::getValue() const {
28  Variant Value = RawSymbol->getValue();
29  if (Value.Type != PDB_VariantType::String)
30  return std::string();
31  return std::string(Value.Value.String);
32 }
33 
35  Dumper.dump(*this);
36 }
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
Definition: IPDBSession.h:26
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
union llvm::pdb::Variant::@193 Value
std::unique_ptr< IPDBRawSymbol > RawSymbol
Definition: PDBSymbol.h:134
Definition: BitVector.h:921
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:61
virtual void dump(const PDBSymbolAnnotation &Symbol)
PDBSymbolCompilandEnv(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > Symbol)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
Definition: Value.h:73
PDB_VariantType Type
Definition: PDBTypes.h:346