1 //===-- DWARFLocationExpression.h -------------------------------*- 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 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_DWARFLOCATIONEXPRESSION_H 10 #define LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_DWARFLOCATIONEXPRESSION_H 11 12 #include "lldb/lldb-forward.h" 13 #include "llvm/ADT/ArrayRef.h" 14 #include "llvm/DebugInfo/CodeView/CodeView.h" 15 16 namespace llvm { 17 class APSInt; 18 class StringRef; 19 namespace codeview { 20 class TypeIndex; 21 } 22 namespace pdb { 23 class TpiStream; 24 } 25 } // namespace llvm 26 namespace lldb_private { 27 namespace npdb { 28 DWARFExpression 29 MakeEnregisteredLocationExpression(llvm::codeview::RegisterId reg, 30 lldb::ModuleSP module); 31 32 DWARFExpression MakeRegRelLocationExpression(llvm::codeview::RegisterId reg, 33 int32_t offset, 34 lldb::ModuleSP module); 35 DWARFExpression MakeVFrameRelLocationExpression(llvm::StringRef fpo_program, 36 int32_t offset, 37 lldb::ModuleSP module); 38 DWARFExpression MakeGlobalLocationExpression(uint16_t section, uint32_t offset, 39 lldb::ModuleSP module); 40 DWARFExpression MakeConstantLocationExpression( 41 llvm::codeview::TypeIndex underlying_ti, llvm::pdb::TpiStream &tpi, 42 const llvm::APSInt &constant, lldb::ModuleSP module); 43 DWARFExpression MakeEnregisteredLocationExpressionForClass( 44 llvm::ArrayRef<std::pair<llvm::codeview::RegisterId, uint32_t>> 45 &members_info, 46 lldb::ModuleSP module); 47 } // namespace npdb 48 } // namespace lldb_private 49 50 #endif 51