[llvm] r341826 - [Sparc] Move SparcTargetStreamer.h to the MC Desc, where the implementation is already
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 10 06:55:38 PDT 2018
Author: d0k
Date: Mon Sep 10 06:55:38 2018
New Revision: 341826
URL: http://llvm.org/viewvc/llvm-project?rev=341826&view=rev
Log:
[Sparc] Move SparcTargetStreamer.h to the MC Desc, where the implementation is already
Added:
llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcTargetStreamer.h
- copied, changed from r341825, llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h
Removed:
llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h
Modified:
llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp
Copied: llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcTargetStreamer.h (from r341825, llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcTargetStreamer.h?p2=llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcTargetStreamer.h&p1=llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h&r1=341825&r2=341826&rev=341826&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h (original)
+++ llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcTargetStreamer.h Mon Sep 10 06:55:38 2018
@@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIB_TARGET_SPARC_SPARCTARGETSTREAMER_H
-#define LLVM_LIB_TARGET_SPARC_SPARCTARGETSTREAMER_H
+#ifndef LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCTARGETSTREAMER_H
+#define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCTARGETSTREAMER_H
#include "llvm/MC/MCELFStreamer.h"
#include "llvm/MC/MCStreamer.h"
@@ -33,7 +33,6 @@ public:
SparcTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS);
void emitSparcRegisterIgnore(unsigned reg) override;
void emitSparcRegisterScratch(unsigned reg) override;
-
};
// This part is for ELF object output
Modified: llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp?rev=341826&r1=341825&r2=341826&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp Mon Sep 10 06:55:38 2018
@@ -14,10 +14,10 @@
#include "InstPrinter/SparcInstPrinter.h"
#include "MCTargetDesc/SparcMCExpr.h"
+#include "MCTargetDesc/SparcTargetStreamer.h"
#include "Sparc.h"
#include "SparcInstrInfo.h"
#include "SparcTargetMachine.h"
-#include "SparcTargetStreamer.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
Removed: llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h?rev=341825&view=auto
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h (original)
+++ llvm/trunk/lib/Target/Sparc/SparcTargetStreamer.h (removed)
@@ -1,49 +0,0 @@
-//===-- SparcTargetStreamer.h - Sparc Target Streamer ----------*- C++ -*--===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_LIB_TARGET_SPARC_SPARCTARGETSTREAMER_H
-#define LLVM_LIB_TARGET_SPARC_SPARCTARGETSTREAMER_H
-
-#include "llvm/MC/MCELFStreamer.h"
-#include "llvm/MC/MCStreamer.h"
-
-namespace llvm {
-class SparcTargetStreamer : public MCTargetStreamer {
- virtual void anchor();
-
-public:
- SparcTargetStreamer(MCStreamer &S);
- /// Emit ".register <reg>, #ignore".
- virtual void emitSparcRegisterIgnore(unsigned reg) = 0;
- /// Emit ".register <reg>, #scratch".
- virtual void emitSparcRegisterScratch(unsigned reg) = 0;
-};
-
-// This part is for ascii assembly output
-class SparcTargetAsmStreamer : public SparcTargetStreamer {
- formatted_raw_ostream &OS;
-
-public:
- SparcTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS);
- void emitSparcRegisterIgnore(unsigned reg) override;
- void emitSparcRegisterScratch(unsigned reg) override;
-
-};
-
-// This part is for ELF object output
-class SparcTargetELFStreamer : public SparcTargetStreamer {
-public:
- SparcTargetELFStreamer(MCStreamer &S);
- MCELFStreamer &getStreamer();
- void emitSparcRegisterIgnore(unsigned reg) override {}
- void emitSparcRegisterScratch(unsigned reg) override {}
-};
-} // end namespace llvm
-
-#endif
More information about the llvm-commits
mailing list