1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[llvm] Forward-declare formatted_raw_ostream (NFC)

Various *TargetStreamer.h need formatted_raw_ostream but rely on a
forward declaration of formatted_raw_ostream in MCStreamer.h.  This
patch adds forward declarations right in *TargetStreamer.h.

While we are at it, this patch removes the one in MCStreamer.h, where
it is unnecessary.
This commit is contained in:
Kazu Hirata 2021-01-28 22:21:12 -08:00
parent 034d6b415f
commit 606fed8845
6 changed files with 9 additions and 1 deletions

View File

@ -39,7 +39,6 @@
namespace llvm {
class AssemblerConstantPools;
class formatted_raw_ostream;
class MCAsmBackend;
class MCCodeEmitter;
class MCContext;

View File

@ -23,6 +23,7 @@ class MCSymbol;
class MDNode;
class Module;
class Type;
class formatted_raw_ostream;
namespace AMDGPU {
namespace HSAMD {

View File

@ -19,6 +19,8 @@
namespace llvm {
class formatted_raw_ostream;
class MipsTargetStreamer : public MCTargetStreamer {
public:
MipsTargetStreamer(MCStreamer &S);

View File

@ -14,6 +14,8 @@
namespace llvm {
class formatted_raw_ostream;
class RISCVTargetStreamer : public MCTargetStreamer {
public:
RISCVTargetStreamer(MCStreamer &S);

View File

@ -13,6 +13,9 @@
#include "llvm/MC/MCStreamer.h"
namespace llvm {
class formatted_raw_ostream;
class SparcTargetStreamer : public MCTargetStreamer {
virtual void anchor();

View File

@ -22,6 +22,7 @@
namespace llvm {
class MCSymbolWasm;
class formatted_raw_ostream;
/// WebAssembly-specific streamer interface, to implement support
/// WebAssembly-specific assembly directives.