LLVM  13.0.0git
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 }
PDBSymbolCompilandEnv.h
llvm
Definition: AllocatorList.h:23
IPDBRawSymbol.h
PDBSymDumper.h
llvm::pdb::PDBSymDumper::dump
virtual void dump(const PDBSymbolAnnotation &Symbol)
Definition: PDBSymDumper.cpp:24
PDBSymbol.h
llvm::pdb::IPDBRawSymbol::getValue
virtual Variant getValue() const =0
llvm::pdb
Definition: ConcreteSymbolEnumerator.h:20
llvm::Value::Value
Value(Type *Ty, unsigned scid)
Definition: Value.cpp:53
llvm::pdb::PDBSymbolCompilandEnv::dump
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
Definition: PDBSymbolCompilandEnv.cpp:27
llvm::pdb::PDBSymbolCompilandEnv::getValue
std::string getValue() const
Definition: PDBSymbolCompilandEnv.cpp:20
llvm::pdb::PDBSymDumper
Definition: PDBSymDumper.h:19
llvm::pdb::PDBSymbol::RawSymbol
IPDBRawSymbol * RawSymbol
Definition: PDBSymbol.h:169
llvm::pdb::Variant
Definition: PDBTypes.h:410
llvm::pdb::String
@ String
Definition: PDBTypes.h:407
llvm::Value
LLVM Value Representation.
Definition: Value.h:75