File tree Expand file tree Collapse file tree 4 files changed +2
-17
lines changed Expand file tree Collapse file tree 4 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,6 @@ struct FunctionCallLabel {
118
118
// / from JITted expressions.
119
119
inline constexpr llvm::StringRef FunctionCallLabelPrefix = " $__lldb_func" ;
120
120
121
- bool consumeFunctionCallLabelPrefix (llvm::StringRef &name);
122
- bool hasFunctionCallLabelPrefix (llvm::StringRef name);
123
-
124
121
} // namespace lldb_private
125
122
126
123
#endif // LLDB_EXPRESSION_EXPRESSION_H
Original file line number Diff line number Diff line change @@ -30,15 +30,3 @@ Expression::Expression(ExecutionContextScope &exe_scope)
30
30
m_jit_end_addr(LLDB_INVALID_ADDRESS) {
31
31
assert (m_target_wp.lock ());
32
32
}
33
-
34
- bool lldb_private::consumeFunctionCallLabelPrefix (llvm::StringRef &name) {
35
- // On Darwin mangled names get a '_' prefix.
36
- name.consume_front (" _" );
37
- return name.consume_front (FunctionCallLabelPrefix);
38
- }
39
-
40
- bool lldb_private::hasFunctionCallLabelPrefix (llvm::StringRef name) {
41
- // On Darwin mangled names get a '_' prefix.
42
- name.consume_front (" _" );
43
- return name.starts_with (FunctionCallLabelPrefix);
44
- }
Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ lldb::addr_t IRExecutionUnit::FindInUserDefinedSymbols(
966
966
967
967
lldb::addr_t IRExecutionUnit::FindSymbol (lldb_private::ConstString name,
968
968
bool &missing_weak) {
969
- if (hasFunctionCallLabelPrefix ( name.GetStringRef ())) {
969
+ if (name.GetStringRef (). starts_with (FunctionCallLabelPrefix )) {
970
970
if (auto addr_or_err = ResolveFunctionCallLabel (name.GetStringRef (),
971
971
m_sym_ctx, missing_weak)) {
972
972
return *addr_or_err;
Original file line number Diff line number Diff line change @@ -9790,7 +9790,7 @@ void TypeSystemClang::LogCreation() const {
9790
9790
// $__lldb_func:<mangled name>:<module id>:<definition/declaration DIE id>
9791
9791
llvm::Expected<llvm::SmallVector<llvm::StringRef, 3 >>
9792
9792
TypeSystemClang::splitFunctionCallLabel (llvm::StringRef label) const {
9793
- if (!consumeFunctionCallLabelPrefix ( label))
9793
+ if (!label. consume_front (FunctionCallLabelPrefix ))
9794
9794
return llvm::createStringError (
9795
9795
" expected function call label prefix not found in %s" , label.data ());
9796
9796
if (!label.consume_front (" :" ))
You can’t perform that action at this time.
0 commit comments