1 //===-- PDBLocationToDWARFExpression.h --------------------------*- 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 #ifndef lldb_Plugins_SymbolFile_PDB_PDBLocationToDWARFExpression_h_
10 #define lldb_Plugins_SymbolFile_PDB_PDBLocationToDWARFExpression_h_
12 #include "lldb/Core/Module.h"
13 #include "lldb/Symbol/Variable.h"
15 namespace lldb_private {
16 class DWARFExpression;
25 /// Converts a location information from a PDB symbol to a DWARF expression
28 /// The module \a symbol belongs to.
31 /// The symbol with a location information to convert.
34 /// Ranges where this variable is valid.
36 /// \param[out] is_constant
37 /// Set to \b true if the result expression is a constant value data,
38 /// and \b false if it is a DWARF bytecode.
41 /// The DWARF expression corresponding to the location data of \a symbol.
42 lldb_private::DWARFExpression
43 ConvertPDBLocationToDWARFExpression(lldb::ModuleSP module,
44 const llvm::pdb::PDBSymbolData &symbol,
45 const lldb_private::Variable::RangeList &ranges,