This is an archive of the discontinued LLVM Phabricator instance.

[SymbolFilePDB] Minor cleanup
ClosedPublic

Authored by asmith on Mar 6 2018, 10:41 AM.

Details

Summary
  • Remove unused code
  • Adding break statement conditionally
  • Ignore empty strings in FindTypeByName

Diff Detail

Repository
rL LLVM

Event Timeline

asmith created this revision.Mar 6 2018, 10:41 AM
zturner accepted this revision.Mar 6 2018, 12:31 PM
zturner added inline comments.
source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
499

Why would this return nullptr?

This revision is now accepted and ready to land.Mar 6 2018, 12:31 PM
asmith marked an inline comment as done.Mar 6 2018, 7:15 PM
asmith added inline comments.
source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
499

No idea but it does.

TypeList *Module::GetTypeList() {

SymbolVendor *symbols = GetSymbolVendor();
if (symbols)
  return &symbols->GetTypeList();
return nullptr;

}

asmith closed this revision.Mar 6 2018, 7:19 PM