This method just takes its ConstString parameter and gets a StringRef
out of it. Let's just pass in a StringRef directly.
This also cleans up some logic in the callers to be a little easier to
read and to avoid unnecessary ConstString creation.
Paths
| Differential D153054
[lldb][NFCI] TypeSystemClang::GetTypeForIdentifier should take a StringRef ClosedPublic Authored by bulbazord on Jun 15 2023, 10:33 AM.
Details Summary This method just takes its ConstString parameter and gets a StringRef This also cleans up some logic in the callers to be a little easier to
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 15 2023, 10:56 AM
Closed by commit rG4c8b6fae4437: [lldb][NFCI] TypeSystemClang::GetTypeForIdentifier should take a StringRef (authored by bulbazord). · Explain WhyJun 16 2023, 10:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 532224 lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
lldb/source/Plugins/RegisterTypeBuilder/RegisterTypeBuilderClang.cpp
lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
|
why not directly pass in "__lldb_autogen_nspair" here?