[Lldb-commits] [PATCH] D152315: [lldb][NFCI] Refactor TypeSystemClang::GetBasicTypeEnumeration
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 6 15:51:08 PDT 2023
bulbazord added inline comments.
================
Comment at: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:868
+lldb::BasicType TypeSystemClang::GetBasicTypeEnumeration(llvm::StringRef name) {
+ if (name.empty())
+ return eBasicTypeInvalid;
----------------
aprantl wrote:
> Isn't this redundant?
Technically yes. My reasoning is that it's faster to see if a StringRef is empty than to perform a lookup in a hash map.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152315/new/
https://reviews.llvm.org/D152315
More information about the lldb-commits
mailing list