Path: blob/main/contrib/llvm-project/llvm/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp
35269 views
//===- PDBSymbolCompilandEnv.cpp - compiland env variables ------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h"910#include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"11#include "llvm/DebugInfo/PDB/PDBSymDumper.h"12#include "llvm/DebugInfo/PDB/PDBTypes.h"1314using namespace llvm;15using namespace llvm::pdb;1617std::string PDBSymbolCompilandEnv::getValue() const {18Variant Value = RawSymbol->getValue();19if (Value.Type != PDB_VariantType::String)20return std::string();21return std::string(Value.Value.String);22}2324void PDBSymbolCompilandEnv::dump(PDBSymDumper &Dumper) const {25Dumper.dump(*this);26}272829