Skip to content

Commit 23a33a7

Browse files
[BOLT] Fix a warning
This patch fixes: bolt/lib/Rewrite/DWARFRewriter.cpp:187:18: error: private field 'Rewriter' is not used [-Werror,-Wunused-private-field] Note that: commit 61df854 Author: Sayhaan Siddiqui <[email protected]> Date: Mon Jun 10 10:46:20 2024 -0700 removed the last use of Rewriter.
1 parent bc70c29 commit 23a33a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ namespace bolt {
184184
/// Emits debug information into .debug_info or .debug_types section.
185185
class DIEStreamer : public DwarfStreamer {
186186
DIEBuilder *DIEBldr;
187-
DWARFRewriter &Rewriter;
188187
GDBIndex &GDBIndexSection;
189188

190189
private:
@@ -285,7 +284,7 @@ class DIEStreamer : public DwarfStreamer {
285284
raw_pwrite_stream &OutFile,
286285
DWARFLinkerBase::MessageHandlerTy Warning)
287286
: DwarfStreamer(OutFileType, OutFile, Warning), DIEBldr(DIEBldr),
288-
Rewriter(Rewriter), GDBIndexSection(GDBIndexSection) {};
287+
GDBIndexSection(GDBIndexSection) {};
289288

290289
using DwarfStreamer::emitCompileUnitHeader;
291290

0 commit comments

Comments
 (0)