66//
77// ===----------------------------------------------------------------------===//
88
9- #ifndef LLDB_VALUEOBJECT_DILEVAL_H_
10- #define LLDB_VALUEOBJECT_DILEVAL_H_
9+ #ifndef LLDB_VALUEOBJECT_DILEVAL_H
10+ #define LLDB_VALUEOBJECT_DILEVAL_H
1111
1212#include < memory>
1313#include < vector>
1414
1515#include " lldb/ValueObject/DILAST.h"
1616#include " lldb/ValueObject/DILParser.h"
1717
18- namespace lldb_private {
19-
20- namespace dil {
18+ namespace lldb_private ::dil {
2119
2220class FlowAnalysis {
2321 public:
@@ -33,13 +31,10 @@ class FlowAnalysis {
3331
3432class DILInterpreter : Visitor {
3533 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,
4036 lldb::ValueObjectSP scope);
41- DILInterpreter (lldb::TargetSP target,
42- std::shared_ptr<DILSourceManager> sm,
37+ DILInterpreter (lldb::TargetSP target, llvm::StringRef expr,
4338 lldb::DynamicValueType use_dynamic);
4439
4540 lldb::ValueObjectSP DILEval (const DILASTNode* tree, lldb::TargetSP target_sp,
@@ -139,7 +134,7 @@ class DILInterpreter : Visitor {
139134 // Used by the interpreter to create objects, perform casts, etc.
140135 lldb::TargetSP m_target;
141136
142- std::shared_ptr<DILSourceManager> m_sm ;
137+ llvm::StringRef m_expr ;
143138
144139 // Flow analysis chain represents the expression evaluation flow for the
145140 // current code branch. Each node in the chain corresponds to an AST node,
@@ -162,8 +157,6 @@ class DILInterpreter : Visitor {
162157 Status m_error;
163158};
164159
165- } // namespace dil
166-
167- } // namespace lldb_private
160+ } // namespace lldb_private::dil
168161
169- #endif // LLDB_VALUEOBJECT_DILEVAL_H_
162+ #endif // LLDB_VALUEOBJECT_DILEVAL_H
0 commit comments