forked from OSchip/llvm-project
parent
f475fa3575
commit
4f145b2a59
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue