[llvm] [MC] Remove a redundant declaration of createNullStreamer (NFC) (PR #166025)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 1 14:53:14 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/166025
Note that createNullStreamer is declared also in
llvm/include/llvm/MC/MCStreamer.h.
Identified with readability-redundant-declaration.
>From d706c508406ebaf628ade326fc3d8240fd474c67 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 1 Nov 2025 13:00:32 -0700
Subject: [PATCH] [MC] Remove a redundant declaration of createNullStreamer
(NFC)
Note that createNullStreamer is declared also in
llvm/include/llvm/MC/MCStreamer.h.
Identified with readability-redundant-declaration.
---
llvm/include/llvm/MC/TargetRegistry.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/llvm/include/llvm/MC/TargetRegistry.h b/llvm/include/llvm/MC/TargetRegistry.h
index 234c587c8e951..97c0f03c987e7 100644
--- a/llvm/include/llvm/MC/TargetRegistry.h
+++ b/llvm/include/llvm/MC/TargetRegistry.h
@@ -22,6 +22,7 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/MC/MCObjectFileInfo.h"
+#include "llvm/MC/MCStreamer.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
@@ -49,7 +50,6 @@ class MCInstrInfo;
class MCObjectWriter;
class MCRegisterInfo;
class MCRelocationInfo;
-class MCStreamer;
class MCSubtargetInfo;
class MCSymbolizer;
class MCTargetAsmParser;
@@ -65,7 +65,6 @@ class InstrumentManager;
struct SourceMgr;
} // namespace mca
-LLVM_ABI MCStreamer *createNullStreamer(MCContext &Ctx);
// Takes ownership of \p TAB and \p CE.
/// Create a machine code streamer which will print out assembly for the native
More information about the llvm-commits
mailing list