]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Plugins / SymbolFile / NativePDB / DWARFLocationExpression.h
1 //===-- DWARFLocationExpression.h -------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLDB_PLUGINS_SYMBOLFILE_NATIVEPDB_DWARFLOCATIONEXPRESSION_H
11 #define LLDB_PLUGINS_SYMBOLFILE_NATIVEPDB_DWARFLOCATIONEXPRESSION_H
12
13 #include "lldb/lldb-forward.h"
14 #include "llvm/DebugInfo/CodeView/CodeView.h"
15
16 namespace llvm {
17 class APSInt;
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 MakeGlobalLocationExpression(uint16_t section, uint32_t offset,
35                                              lldb::ModuleSP module);
36 DWARFExpression MakeConstantLocationExpression(
37     llvm::codeview::TypeIndex underlying_ti, llvm::pdb::TpiStream &tpi,
38     const llvm::APSInt &constant, lldb::ModuleSP module);
39 } // namespace npdb
40 } // namespace lldb_private
41
42 #endif