llvm.org GIT mirror llvm / 2a1f47a
Remove unused private field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302069 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 3 years ago
3 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
7575 class ModuleDebugInlineeLineFragment final : public ModuleDebugFragment {
7676 public:
7777 ModuleDebugInlineeLineFragment(ModuleDebugFileChecksumFragment &Checksums,
78 StringTable &Strings, bool HasExtraFiles);
78 bool HasExtraFiles);
7979
8080 static bool classof(const ModuleDebugFragment *S) {
8181 return S->kind() == ModuleDebugFragmentKind::InlineeLines;
8989
9090 private:
9191 ModuleDebugFileChecksumFragment &Checksums;
92 StringTable &Strings;
9392
9493 bool HasExtraFiles = false;
9594 uint32_t ExtraFileCount = 0;
5656 }
5757
5858 ModuleDebugInlineeLineFragment::ModuleDebugInlineeLineFragment(
59 ModuleDebugFileChecksumFragment &Checksums, StringTable &Strings,
60 bool HasExtraFiles)
59 ModuleDebugFileChecksumFragment &Checksums, bool HasExtraFiles)
6160 : ModuleDebugFragment(ModuleDebugFragmentKind::InlineeLines),
62 Checksums(Checksums), Strings(Strings), HasExtraFiles(HasExtraFiles) {}
61 Checksums(Checksums), HasExtraFiles(HasExtraFiles) {}
6362
6463 uint32_t ModuleDebugInlineeLineFragment::calculateSerializedLength() {
6564 // 4 bytes for the signature
542542
543543 for (const auto &Inlinee : FLI.Inlinees) {
544544 auto Inlinees = llvm::make_unique(
545 ChecksumRef, Strings, Inlinee.HasExtraFiles);
545 ChecksumRef, Inlinee.HasExtraFiles);
546546 for (const auto &Site : Inlinee.Sites) {
547547 Inlinees->addInlineSite(Site.Inlinee, Site.FileName,
548548 Site.SourceLineNum);