Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Show First 20 Lines • Show All 2,134 Lines • ▼ Show 20 Lines | void SymbolFileDWARF::FindGlobalVariables( | ||||
if (!DeclContextMatchesThisSymbolFile(parent_decl_ctx)) | if (!DeclContextMatchesThisSymbolFile(parent_decl_ctx)) | ||||
return; | return; | ||||
// Remember how many variables are in the list before we search. | // Remember how many variables are in the list before we search. | ||||
const uint32_t original_size = variables.GetSize(); | const uint32_t original_size = variables.GetSize(); | ||||
llvm::StringRef basename; | llvm::StringRef basename; | ||||
llvm::StringRef context; | llvm::StringRef context; | ||||
bool name_is_mangled = (bool)Mangled(name); | bool name_is_mangled = Mangled::GetManglingScheme(name.GetStringRef()) != | ||||
Mangled::eManglingSchemeNone; | |||||
if (!CPlusPlusLanguage::ExtractContextAndIdentifier(name.GetCString(), | if (!CPlusPlusLanguage::ExtractContextAndIdentifier(name.GetCString(), | ||||
context, basename)) | context, basename)) | ||||
basename = name.GetStringRef(); | basename = name.GetStringRef(); | ||||
// Loop invariant: Variables up to this index have been checked for context | // Loop invariant: Variables up to this index have been checked for context | ||||
// matches. | // matches. | ||||
uint32_t pruned_idx = original_size; | uint32_t pruned_idx = original_size; | ||||
▲ Show 20 Lines • Show All 1,941 Lines • Show Last 20 Lines |