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 9 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h" 10 11 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h" 12 #include "llvm/DebugInfo/PDB/PDBSymDumper.h" 13 #include "llvm/DebugInfo/PDB/PDBSymbol.h" 14 15 #include <utility> 16 17 using namespace llvm; 18 using namespace llvm::pdb; 19 getValue() const20std::string PDBSymbolCompilandEnv::getValue() const { 21 Variant Value = RawSymbol->getValue(); 22 if (Value.Type != PDB_VariantType::String) 23 return std::string(); 24 return std::string(Value.Value.String); 25 } 26 dump(PDBSymDumper & Dumper) const27void PDBSymbolCompilandEnv::dump(PDBSymDumper &Dumper) const { 28 Dumper.dump(*this); 29 } 30