Skip to content

Commit

Permalink
Remove unused private field.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302069 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Zachary Turner committed May 3, 2017
1 parent f931b1e commit 2a1f47a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ModuleDebugInlineeLineFragmentRef final : public ModuleDebugFragmentRef {
class ModuleDebugInlineeLineFragment final : public ModuleDebugFragment {
public:
ModuleDebugInlineeLineFragment(ModuleDebugFileChecksumFragment &Checksums,
StringTable &Strings, bool HasExtraFiles);
bool HasExtraFiles);

static bool classof(const ModuleDebugFragment *S) {
return S->kind() == ModuleDebugFragmentKind::InlineeLines;
Expand All @@ -90,7 +90,6 @@ class ModuleDebugInlineeLineFragment final : public ModuleDebugFragment {

private:
ModuleDebugFileChecksumFragment &Checksums;
StringTable &Strings;

bool HasExtraFiles = false;
uint32_t ExtraFileCount = 0;
Expand Down
5 changes: 2 additions & 3 deletions lib/DebugInfo/CodeView/ModuleDebugInlineeLinesFragment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ bool ModuleDebugInlineeLineFragmentRef::hasExtraFiles() const {
}

ModuleDebugInlineeLineFragment::ModuleDebugInlineeLineFragment(
ModuleDebugFileChecksumFragment &Checksums, StringTable &Strings,
bool HasExtraFiles)
ModuleDebugFileChecksumFragment &Checksums, bool HasExtraFiles)
: ModuleDebugFragment(ModuleDebugFragmentKind::InlineeLines),
Checksums(Checksums), Strings(Strings), HasExtraFiles(HasExtraFiles) {}
Checksums(Checksums), HasExtraFiles(HasExtraFiles) {}

uint32_t ModuleDebugInlineeLineFragment::calculateSerializedLength() {
// 4 bytes for the signature
Expand Down
2 changes: 1 addition & 1 deletion tools/llvm-pdbdump/llvm-pdbdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ static void yamlToPdb(StringRef Path) {

for (const auto &Inlinee : FLI.Inlinees) {
auto Inlinees = llvm::make_unique<ModuleDebugInlineeLineFragment>(
ChecksumRef, Strings, Inlinee.HasExtraFiles);
ChecksumRef, Inlinee.HasExtraFiles);
for (const auto &Site : Inlinee.Sites) {
Inlinees->addInlineSite(Site.Inlinee, Site.FileName,
Site.SourceLineNum);
Expand Down

0 comments on commit 2a1f47a

Please sign in to comment.