[InstCombine] Signed saturation patterns
[llvm-complete.git] / lib / DebugInfo / PDB / PDBSymbolCompilandEnv.cpp
blob61f119405fd954cc55aba577b68e4803f3ef1751
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 //===----------------------------------------------------------------------===//
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"
15 #include <utility>
17 using namespace llvm;
18 using namespace llvm::pdb;
20 std::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);
27 void PDBSymbolCompilandEnv::dump(PDBSymDumper &Dumper) const {
28 Dumper.dump(*this);