[llvm] f1422a8 - [MC] Deprecate createMCObjectStreamer with 3 unused trailing bool

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 20 21:46:12 PDT 2024


Author: Fangrui Song
Date: 2024-07-20T21:46:07-07:00
New Revision: f1422a86c4a812a7ccd744082741841e596ccea0

URL: https://github.com/llvm/llvm-project/commit/f1422a86c4a812a7ccd744082741841e596ccea0
DIFF: https://github.com/llvm/llvm-project/commit/f1422a86c4a812a7ccd744082741841e596ccea0.diff

LOG: [MC] Deprecate createMCObjectStreamer with 3 unused trailing bool

Added: 
    

Modified: 
    llvm/include/llvm/MC/TargetRegistry.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/TargetRegistry.h b/llvm/include/llvm/MC/TargetRegistry.h
index e09318ba18f5a..69658141355f5 100644
--- a/llvm/include/llvm/MC/TargetRegistry.h
+++ b/llvm/include/llvm/MC/TargetRegistry.h
@@ -23,6 +23,7 @@
 #include "llvm/ADT/iterator_range.h"
 #include "llvm/MC/MCObjectFileInfo.h"
 #include "llvm/Support/CodeGen.h"
+#include "llvm/Support/Compiler.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/FormattedStream.h"
 #include "llvm/TargetParser/Triple.h"
@@ -530,6 +531,7 @@ class Target {
                                      std::unique_ptr<MCObjectWriter> OW,
                                      std::unique_ptr<MCCodeEmitter> Emitter,
                                      const MCSubtargetInfo &STI) const;
+  LLVM_DEPRECATED("Use the overload without the 3 trailing bool", "")
   MCStreamer *createMCObjectStreamer(const Triple &T, MCContext &Ctx,
                                      std::unique_ptr<MCAsmBackend> &&TAB,
                                      std::unique_ptr<MCObjectWriter> &&OW,


        


More information about the llvm-commits mailing list