Skip to content

Commit 77fe59c

Browse files
committed
[upstreaming][NFC] Revert changes to ExpressionSourceCode.h
1 parent 71d5efd commit 77fe59c

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

lldb/include/lldb/Expression/ExpressionSourceCode.h

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#ifndef liblldb_ExpressionSourceCode_h
1010
#define liblldb_ExpressionSourceCode_h
1111

12-
#include "lldb/Expression/Expression.h"
1312
#include "lldb/lldb-enumerations.h"
1413
#include "llvm/ADT/ArrayRef.h"
1514
#include "llvm/ADT/StringRef.h"
@@ -30,30 +29,15 @@ class ExpressionSourceCode {
3029

3130
const char *GetName() const { return m_name.c_str(); }
3231

33-
uint32_t GetNumBodyLines();
34-
35-
bool GetText(std::string &text, lldb::LanguageType wrapping_language,
36-
uint32_t language_flags,
37-
const EvaluateExpressionOptions &options,
38-
ExecutionContext &exe_ctx, uint32_t &first_body_line) const;
39-
40-
// Given a string returned by GetText, find the beginning and end of the body
41-
// passed to CreateWrapped. Return true if the bounds could be found. This
42-
// will also work on text with FixItHints applied.
43-
static bool GetOriginalBodyBounds(std::string transformed_text,
44-
lldb::LanguageType wrapping_language,
45-
size_t &start_loc, size_t &end_loc);
46-
4732
protected:
48-
ExpressionSourceCode(llvm::StringRef name, llvm::StringRef prefix,
49-
llvm::StringRef body, Wrapping wrap)
33+
ExpressionSourceCode(llvm::StringRef name, llvm::StringRef prefix,
34+
llvm::StringRef body, Wrapping wrap)
5035
: m_name(name.str()), m_prefix(prefix.str()), m_body(body.str()),
51-
m_num_body_lines(0), m_wrap(wrap) {}
36+
m_wrap(wrap) {}
5237

5338
std::string m_name;
5439
std::string m_prefix;
5540
std::string m_body;
56-
uint32_t m_num_body_lines;
5741
Wrapping m_wrap;
5842
};
5943

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionSourceCode.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef liblldb_SwiftExpressionSourceCode_h
1010
#define liblldb_SwiftExpressionSourceCode_h
1111

12+
#include "lldb/Expression/Expression.h"
1213
#include "lldb/Expression/ExpressionSourceCode.h"
1314
#include "lldb/lldb-enumerations.h"
1415

0 commit comments

Comments
 (0)