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