[Lldb-commits] [PATCH] D62756: Be consistent when adding names and mangled names to the index
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri May 31 15:35:56 PDT 2019
aprantl added inline comments.
================
Comment at: source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp:114
+static inline bool AddMangled(const char *name, const char *mangled) {
+ if (mangled == nullptr || name == mangled)
+ return false;
----------------
Even in a static function I feel weird comparing two char* by pointer value. Can you use llvm::StringRefs instead? then we don't need to call the unsafe strcmp either and just trust that operator== is implemented efficiently.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62756/new/
https://reviews.llvm.org/D62756
More information about the lldb-commits
mailing list