6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLDB_VALUEOBJECT_DILEVAL_H_
10
- #define LLDB_VALUEOBJECT_DILEVAL_H_
9
+ #ifndef LLDB_VALUEOBJECT_DILEVAL_H
10
+ #define LLDB_VALUEOBJECT_DILEVAL_H
11
11
12
12
#include < memory>
13
13
#include < vector>
14
14
15
15
#include " lldb/ValueObject/DILAST.h"
16
16
#include " lldb/ValueObject/DILParser.h"
17
17
18
- namespace lldb_private {
19
-
20
- namespace dil {
18
+ namespace lldb_private ::dil {
21
19
22
20
class FlowAnalysis {
23
21
public:
@@ -33,13 +31,10 @@ class FlowAnalysis {
33
31
34
32
class DILInterpreter : Visitor {
35
33
public:
36
- DILInterpreter (lldb::TargetSP target,
37
- std::shared_ptr<DILSourceManager> sm);
38
- DILInterpreter (lldb::TargetSP target,
39
- std::shared_ptr<DILSourceManager> sm,
34
+ DILInterpreter (lldb::TargetSP target, llvm::StringRef expr);
35
+ DILInterpreter (lldb::TargetSP target, llvm::StringRef expr,
40
36
lldb::ValueObjectSP scope);
41
- DILInterpreter (lldb::TargetSP target,
42
- std::shared_ptr<DILSourceManager> sm,
37
+ DILInterpreter (lldb::TargetSP target, llvm::StringRef expr,
43
38
lldb::DynamicValueType use_dynamic);
44
39
45
40
lldb::ValueObjectSP DILEval (const DILASTNode* tree, lldb::TargetSP target_sp,
@@ -139,7 +134,7 @@ class DILInterpreter : Visitor {
139
134
// Used by the interpreter to create objects, perform casts, etc.
140
135
lldb::TargetSP m_target;
141
136
142
- std::shared_ptr<DILSourceManager> m_sm ;
137
+ llvm::StringRef m_expr ;
143
138
144
139
// Flow analysis chain represents the expression evaluation flow for the
145
140
// current code branch. Each node in the chain corresponds to an AST node,
@@ -162,8 +157,6 @@ class DILInterpreter : Visitor {
162
157
Status m_error;
163
158
};
164
159
165
- } // namespace dil
166
-
167
- } // namespace lldb_private
160
+ } // namespace lldb_private::dil
168
161
169
- #endif // LLDB_VALUEOBJECT_DILEVAL_H_
162
+ #endif // LLDB_VALUEOBJECT_DILEVAL_H
0 commit comments