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