Remove unused private field.

llvm-svn: 302069
This commit is contained in:
Zachary Turner 2017-05-03 19:42:06 +00:00
parent f475fa3575
commit 4f145b2a59
3 changed files with 4 additions and 6 deletions

View File

@ -76,7 +76,7 @@ private:
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;
@ -90,7 +90,6 @@ public:
private:
ModuleDebugFileChecksumFragment &Checksums;
StringTable &Strings;
bool HasExtraFiles = false;
uint32_t ExtraFileCount = 0;

View File

@ -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

View File

@ -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);