LLVM  10.0.0svn
PDBSymbolCompilandEnv.cpp
Go to the documentation of this file.
1 //===- PDBSymbolCompilandEnv.cpp - compiland env variables ------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 
14 
15 #include <utility>
16 
17 using namespace llvm;
18 using namespace llvm::pdb;
19 
20 std::string PDBSymbolCompilandEnv::getValue() const {
22  if (Value.Type != PDB_VariantType::String)
23  return std::string();
24  return std::string(Value.Value.String);
25 }
26 
28  Dumper.dump(*this);
29 }
IPDBRawSymbol * RawSymbol
Definition: PDBSymbol.h:165
This class represents lattice values for constants.
Definition: AllocatorList.h:23
union llvm::pdb::Variant::@231 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:450