[llvm] [MC] Remove a redundant declaration of createNullStreamer (NFC) (PR #166025)

via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 1 14:53:46 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-mc

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

Note that createNullStreamer is declared also in
llvm/include/llvm/MC/MCStreamer.h.

Identified with readability-redundant-declaration.


---
Full diff: https://github.com/llvm/llvm-project/pull/166025.diff


1 Files Affected:

- (modified) llvm/include/llvm/MC/TargetRegistry.h (+1-2) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/166025


More information about the llvm-commits mailing list