[Lldb-commits] [PATCH] D50587: Straight forward FastDemangle replacement in SubsPrimitiveParmItanium
Stefan Gränitz via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 13 04:43:06 PDT 2018
sgraenitz marked 3 inline comments as done.
sgraenitz added inline comments.
================
Comment at: source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp:281
llvm::StringRef replace) {
- Log *log = GetLogIfAllCategoriesSet(LIBLLDB_LOG_LANGUAGE);
-
- const size_t max_len =
- mangled.size() + mangled.count(search) * replace.size() + 1;
+ struct SwapParms {
+ llvm::StringRef mangled;
----------------
JDevlieghere wrote:
> I had to look at the old code to understand the name of this struct. How about DemangleContext or even just Context?
Aligned it with the function name
================
Comment at: source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp:316
+ read_pos = mangled.size();
+ }
+
----------------
This was missing. Also added a test.
https://reviews.llvm.org/D50587
More information about the lldb-commits
mailing list