1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[X86] Sink X86AsmPrinter ctor into .cpp file, NFC

I keep adding and removing code here, so let's sink it.

llvm-svn: 315534
This commit is contained in:
Reid Kleckner 2017-10-11 23:53:12 +00:00
parent 4963aceaec
commit c2f5a575b7
2 changed files with 5 additions and 3 deletions

View File

@ -41,6 +41,10 @@
#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetRegistry.h"
using namespace llvm; using namespace llvm;
X86AsmPrinter::X86AsmPrinter(TargetMachine &TM,
std::unique_ptr<MCStreamer> Streamer)
: AsmPrinter(TM, std::move(Streamer)), SM(*this), FM(*this) {}
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Primitive Helper Functions. // Primitive Helper Functions.
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//

View File

@ -104,9 +104,7 @@ class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
void EmitSEHInstruction(const MachineInstr *MI); void EmitSEHInstruction(const MachineInstr *MI);
public: public:
explicit X86AsmPrinter(TargetMachine &TM, X86AsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer);
std::unique_ptr<MCStreamer> Streamer)
: AsmPrinter(TM, std::move(Streamer)), SM(*this), FM(*this) {}
StringRef getPassName() const override { StringRef getPassName() const override {
return "X86 Assembly Printer"; return "X86 Assembly Printer";