@@ -2177,7 +2177,7 @@ class CommandObjectSwift_Demangle : public CommandObjectParsed {
2177
2177
};
2178
2178
2179
2179
protected:
2180
- bool DoExecute (Args &command, CommandReturnObject &result) override {
2180
+ void DoExecute (Args &command, CommandReturnObject &result) override {
2181
2181
for (size_t i = 0 ; i < command.GetArgumentCount (); i++) {
2182
2182
StringRef name = command.GetArgumentAtIndex (i);
2183
2183
if (!name.empty ()) {
@@ -2202,7 +2202,6 @@ class CommandObjectSwift_Demangle : public CommandObjectParsed {
2202
2202
}
2203
2203
}
2204
2204
result.SetStatus (lldb::eReturnStatusSuccessFinishResult);
2205
- return true ;
2206
2205
}
2207
2206
2208
2207
CommandOptions m_options;
@@ -2266,7 +2265,7 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2266
2265
}
2267
2266
2268
2267
protected:
2269
- bool DoExecute (llvm::StringRef command,
2268
+ void DoExecute (llvm::StringRef command,
2270
2269
CommandReturnObject &result) override {
2271
2270
StackFrameSP frame_sp (m_exe_ctx.GetFrameSP ());
2272
2271
EvaluateExpressionOptions options;
@@ -2285,7 +2284,7 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2285
2284
result.SetStatus (lldb::eReturnStatusFailed);
2286
2285
if (result_valobj_sp && result_valobj_sp->GetError ().Fail ())
2287
2286
result.AppendError (result_valobj_sp->GetError ().AsCString ());
2288
- return false ;
2287
+ return ;
2289
2288
}
2290
2289
2291
2290
// At this point, we're sure we're grabbing in our hands a valid
@@ -2298,7 +2297,7 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2298
2297
if (!(result_type.GetTypeInfo () & lldb::eTypeInstanceIsPointer)) {
2299
2298
result.AppendError (" refcount only available for class types" );
2300
2299
result.SetStatus (lldb::eReturnStatusFailed);
2301
- return false ;
2300
+ return ;
2302
2301
}
2303
2302
2304
2303
// Ask swift debugger support in the compiler about the objects
@@ -2318,7 +2317,6 @@ class CommandObjectSwift_RefCount : public CommandObjectRaw {
2318
2317
unowned ? std::to_string (*unowned).c_str () : unavailable.c_str (),
2319
2318
weak ? std::to_string (*weak).c_str () : unavailable.c_str ());
2320
2319
result.SetStatus (lldb::eReturnStatusSuccessFinishResult);
2321
- return true ;
2322
2320
}
2323
2321
};
2324
2322
0 commit comments