[lldb] Refactor and simplify GetCommandSPExact interface
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 22 Dec 2020 22:02:18 +0000 (14:02 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 23 Dec 2020 18:43:13 +0000 (10:43 -0800)
commita9448872fec52fc57249934b02a4d4f15f223051
treeafdc811a8dbe9646f016d5e3a530e805c12fb57a
parentfcf9479f7d65754cf311d8e5be1046f1ace28945
[lldb] Refactor and simplify GetCommandSPExact interface

GetCommandSPExact is called exaclty once with include_aliases set to
true, so make it a default argument. Use early returns to simplify the
implementation.
lldb/include/lldb/Interpreter/CommandInterpreter.h
lldb/source/Commands/CommandObjectCommands.cpp
lldb/source/Interpreter/CommandInterpreter.cpp