1 //===- PDBSymbolCompilandEnv.cpp - compiland env variables ------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h"
11 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
12 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
13 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
18 using namespace llvm::pdb
;
20 std::string
PDBSymbolCompilandEnv::getValue() const {
21 Variant Value
= RawSymbol
->getValue();
22 if (Value
.Type
!= PDB_VariantType::String
)
24 return std::string(Value
.Value
.String
);
27 void PDBSymbolCompilandEnv::dump(PDBSymDumper
&Dumper
) const {