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