LLVM  15.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 using namespace llvm;
16 using namespace llvm::pdb;
17 
18 std::string PDBSymbolCompilandEnv::getValue() const {
20  if (Value.Type != PDB_VariantType::String)
21  return std::string();
22  return std::string(Value.Value.String);
23 }
24 
26  Dumper.dump(*this);
27 }
PDBSymbolCompilandEnv.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
IPDBRawSymbol.h
PDBSymDumper.h
llvm::pdb::PDBSymDumper::dump
virtual void dump(const PDBSymbolAnnotation &Symbol)
Definition: PDBSymDumper.cpp:24
PDBTypes.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:49
llvm::pdb::PDBSymbolCompilandEnv::dump
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
Definition: PDBSymbolCompilandEnv.cpp:25
llvm::pdb::PDBSymbolCompilandEnv::getValue
std::string getValue() const
Definition: PDBSymbolCompilandEnv.cpp:18
llvm::pdb::PDBSymDumper
Definition: PDBSymDumper.h:19
llvm::pdb::PDBSymbol::RawSymbol
IPDBRawSymbol * RawSymbol
Definition: PDBSymbol.h:170
llvm::pdb::Variant
Definition: PDBTypes.h:411
llvm::pdb::String
@ String
Definition: PDBTypes.h:408
llvm::Value
LLVM Value Representation.
Definition: Value.h:74