From c2f5a575b774e0487da63524f61b72c186167cbb Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 11 Oct 2017 23:53:12 +0000 Subject: [PATCH] [X86] Sink X86AsmPrinter ctor into .cpp file, NFC I keep adding and removing code here, so let's sink it. llvm-svn: 315534 --- lib/Target/X86/X86AsmPrinter.cpp | 4 ++++ lib/Target/X86/X86AsmPrinter.h | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 9673d97b408..1c938d9c842 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -41,6 +41,10 @@ #include "llvm/Support/TargetRegistry.h" using namespace llvm; +X86AsmPrinter::X86AsmPrinter(TargetMachine &TM, + std::unique_ptr Streamer) + : AsmPrinter(TM, std::move(Streamer)), SM(*this), FM(*this) {} + //===----------------------------------------------------------------------===// // Primitive Helper Functions. //===----------------------------------------------------------------------===// diff --git a/lib/Target/X86/X86AsmPrinter.h b/lib/Target/X86/X86AsmPrinter.h index d1773913236..7a40552ee38 100644 --- a/lib/Target/X86/X86AsmPrinter.h +++ b/lib/Target/X86/X86AsmPrinter.h @@ -104,9 +104,7 @@ class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter { void EmitSEHInstruction(const MachineInstr *MI); public: - explicit X86AsmPrinter(TargetMachine &TM, - std::unique_ptr Streamer) - : AsmPrinter(TM, std::move(Streamer)), SM(*this), FM(*this) {} + X86AsmPrinter(TargetMachine &TM, std::unique_ptr Streamer); StringRef getPassName() const override { return "X86 Assembly Printer";