aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorAlex Langford <alangford@apple.com>2023-05-26 18:26:49 -0700
committerAlex Langford <alangford@apple.com>2023-05-30 13:11:55 -0700
commit8e0001eb95ce8654660510ddb06f5a8a3c5c6d68 (patch)
treebc3727d48d089cf353b044c03d0ab22244cf279e /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent19ef02e3f4f82a439a94479589a9f1244d0b1b06 (diff)
downloadllvm-8e0001eb95ce8654660510ddb06f5a8a3c5c6d68.zip
llvm-8e0001eb95ce8654660510ddb06f5a8a3c5c6d68.tar.gz
llvm-8e0001eb95ce8654660510ddb06f5a8a3c5c6d68.tar.bz2
[lldb][NFCI] Refactor Language::GetFormatterPrefixSuffix
- Remove unused parameter `valobj` (I checked downstream, not even swift is using it). - Return a std::pair<StringRef, StringRef> insted of having 2 out parameter strings. - Remove the use of ConstStrings. This change was primarily mechanical except in `ObjCLanguage::GetFormatterPrefixSuffix`. To keep this fast, we construct an llvm::StringMap<std::pair<StringRef, StringRef>> so that we can look things up quickly. There is some amount of cost to setting up the map the first time it is called, but subsequent lookups should be as fast as a hash + string comparison (the cost of looking up something in an llvm::StringMap). Differential Revision: https://reviews.llvm.org/D151603
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions