[llvm] [BOLT] Update DIEStreamer (PR #85818)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 09:59:03 PDT 2024
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/85818
>From 3982b3c18b4f3b44e5a83dad94f9aa391ce37713 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 19 Mar 2024 09:30:43 -0700
Subject: [PATCH 1/2] [BOLT] Update DIEStreamer
commit 43a2ec483fe08064b53a6293682e9bab97df61a0
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: Tue Mar 19 08:30:47 2024 -0700
removed parameter Translator from the constructor of DwarfStreamer.
This patch fixes the build by updating the constructor of DIEStreamer
accordingly.
---
bolt/lib/Rewrite/DWARFRewriter.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/bolt/lib/Rewrite/DWARFRewriter.cpp b/bolt/lib/Rewrite/DWARFRewriter.cpp
index 85c2397dcc5b25..be223f2f2b0bdb 100644
--- a/bolt/lib/Rewrite/DWARFRewriter.cpp
+++ b/bolt/lib/Rewrite/DWARFRewriter.cpp
@@ -283,9 +283,8 @@ class DIEStreamer : public DwarfStreamer {
DIEStreamer(DIEBuilder *DIEBldr, DWARFRewriter &Rewriter,
DWARFLinkerBase::OutputFileType OutFileType,
raw_pwrite_stream &OutFile,
- std::function<StringRef(StringRef Input)> Translator,
DWARFLinkerBase::MessageHandlerTy Warning)
- : DwarfStreamer(OutFileType, OutFile, Translator, Warning),
+ : DwarfStreamer(OutFileType, OutFile, Warning),
DIEBldr(DIEBldr), Rewriter(Rewriter){};
using DwarfStreamer::emitCompileUnitHeader;
@@ -469,7 +468,6 @@ createDIEStreamer(const Triple &TheTriple, raw_pwrite_stream &OutFile,
std::unique_ptr<DIEStreamer> Streamer = std::make_unique<DIEStreamer>(
&DIEBldr, Rewriter, DWARFLinkerBase::OutputFileType::Object, OutFile,
- [](StringRef Input) -> StringRef { return Input; },
[&](const Twine &Warning, StringRef Context, const DWARFDie *) {});
Error Err = Streamer->init(TheTriple, Swift5ReflectionSegmentName);
if (Err)
>From 3d21a05fc0d90f35af92110e6d4b0e20fb031e52 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 19 Mar 2024 09:57:51 -0700
Subject: [PATCH 2/2] Fix formatting
---
bolt/lib/Rewrite/DWARFRewriter.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bolt/lib/Rewrite/DWARFRewriter.cpp b/bolt/lib/Rewrite/DWARFRewriter.cpp
index be223f2f2b0bdb..8dc7b90a6e307e 100644
--- a/bolt/lib/Rewrite/DWARFRewriter.cpp
+++ b/bolt/lib/Rewrite/DWARFRewriter.cpp
@@ -284,8 +284,8 @@ class DIEStreamer : public DwarfStreamer {
DWARFLinkerBase::OutputFileType OutFileType,
raw_pwrite_stream &OutFile,
DWARFLinkerBase::MessageHandlerTy Warning)
- : DwarfStreamer(OutFileType, OutFile, Warning),
- DIEBldr(DIEBldr), Rewriter(Rewriter){};
+ : DwarfStreamer(OutFileType, OutFile, Warning), DIEBldr(DIEBldr),
+ Rewriter(Rewriter){};
using DwarfStreamer::emitCompileUnitHeader;
More information about the llvm-commits
mailing list