LLVM  8.0.1
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 
21 std::string PDBSymbolCompilandEnv::getValue() const {
23  if (Value.Type != PDB_VariantType::String)
24  return std::string();
25  return std::string(Value.Value.String);
26 }
27 
29  Dumper.dump(*this);
30 }
IPDBRawSymbol * RawSymbol
Definition: PDBSymbol.h:166
This class represents lattice values for constants.
Definition: AllocatorList.h:24
union llvm::pdb::Variant::@215 Value
virtual Variant getValue() const =0
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
virtual void dump(const PDBSymbolAnnotation &Symbol)
LLVM Value Representation.
Definition: Value.h:73
PDB_VariantType Type
Definition: PDBTypes.h:392