From c3164b9c2fe9d2c7da991513eb22de720f26223f Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Fri, 3 Feb 2017 21:46:55 +0000 Subject: [XCore] Fix some Include What You Use warnings; other minor fixes (NFC). This is preparation to reduce MCExpr.h dependencies. llvm-svn: 294051 --- llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp | 6 ++++-- llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.h | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target') diff --git a/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp b/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp index 500c84d2a41..b03c1852281 100644 --- a/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp +++ b/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp @@ -12,13 +12,15 @@ //===----------------------------------------------------------------------===// #include "XCoreInstPrinter.h" -#include "llvm/ADT/StringExtras.h" +#include "llvm/ADT/StringRef.h" #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCInst.h" -#include "llvm/MC/MCInstrInfo.h" #include "llvm/MC/MCSymbol.h" +#include "llvm/Support/Casting.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" +#include + using namespace llvm; #define DEBUG_TYPE "asm-printer" diff --git a/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.h b/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.h index dc513f7b225..8a7efe2e39c 100644 --- a/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.h +++ b/llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.h @@ -15,6 +15,8 @@ #ifndef LLVM_LIB_TARGET_XCORE_INSTPRINTER_XCOREINSTPRINTER_H #define LLVM_LIB_TARGET_XCORE_INSTPRINTER_XCOREINSTPRINTER_H + +#include "llvm/ADT/StringRef.h" #include "llvm/MC/MCInstPrinter.h" namespace llvm { @@ -32,12 +34,14 @@ public: void printRegName(raw_ostream &OS, unsigned RegNo) const override; void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot, const MCSubtargetInfo &STI) override; + private: void printInlineJT(const MCInst *MI, int opNum, raw_ostream &O); void printInlineJT32(const MCInst *MI, int opNum, raw_ostream &O); void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O); void printMemOperand(const MCInst *MI, int opNum, raw_ostream &O); }; + } // end namespace llvm -#endif +#endif // LLVM_LIB_TARGET_XCORE_INSTPRINTER_XCOREINSTPRINTER_H -- cgit v1.2.3