@@ -2170,7 +2170,7 @@ class CommandObjectSwift_Demangle : public CommandObjectParsed {
2170
2170
};
2171
2171
2172
2172
protected:
2173
- bool DoExecute (Args &command, CommandReturnObject &result) override {
2173
+ void DoExecute (Args &command, CommandReturnObject &result) override {
2174
2174
for (size_t i = 0 ; i < command.GetArgumentCount (); i++) {
2175
2175
StringRef name = command.GetArgumentAtIndex (i);
2176
2176
if (!name.empty ()) {
@@ -2195,7 +2195,6 @@ class CommandObjectSwift_Demangle : public CommandObjectParsed {
2195
2195
}
2196
2196
}
2197
2197
result.SetStatus (lldb::eReturnStatusSuccessFinishResult);
2198
- return true ;
2199
2198
}
2200
2199
2201
2200
CommandOptions m_options;
@@ -2259,7 +2258,7 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2259
2258
}
2260
2259
2261
2260
protected:
2262
- bool DoExecute (llvm::StringRef command,
2261
+ void DoExecute (llvm::StringRef command,
2263
2262
CommandReturnObject &result) override {
2264
2263
StackFrameSP frame_sp (m_exe_ctx.GetFrameSP ());
2265
2264
EvaluateExpressionOptions options;
@@ -2278,7 +2277,7 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2278
2277
result.SetStatus (lldb::eReturnStatusFailed);
2279
2278
if (result_valobj_sp && result_valobj_sp->GetError ().Fail ())
2280
2279
result.AppendError (result_valobj_sp->GetError ().AsCString ());
2281
- return false ;
2280
+ return ;
2282
2281
}
2283
2282
2284
2283
// At this point, we're sure we're grabbing in our hands a valid
@@ -2291,7 +2290,7 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2291
2290
if (!(result_type.GetTypeInfo () & lldb::eTypeInstanceIsPointer)) {
2292
2291
result.AppendError (" refcount only available for class types" );
2293
2292
result.SetStatus (lldb::eReturnStatusFailed);
2294
- return false ;
2293
+ return ;
2295
2294
}
2296
2295
2297
2296
// Ask swift debugger support in the compiler about the objects
@@ -2311,7 +2310,6 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2311
2310
unowned ? std::to_string (*unowned).c_str () : unavailable.c_str (),
2312
2311
weak ? std::to_string (*weak).c_str () : unavailable.c_str ());
2313
2312
result.SetStatus (lldb::eReturnStatusSuccessFinishResult);
2314
- return true ;
2315
2313
}
2316
2314
};
2317
2315
0 commit comments