diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-02-03 21:46:55 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-02-03 21:46:55 +0000 |
commit | c3164b9c2fe9d2c7da991513eb22de720f26223f (patch) | |
tree | c03ad3a826e8615cb8279a9a89e00f34a177b9a7 | |
parent | 73fc8ddb065112fbb7cad1453774ed96bbb7d6e3 (diff) | |
download | bcm5719-llvm-c3164b9c2fe9d2c7da991513eb22de720f26223f.tar.gz bcm5719-llvm-c3164b9c2fe9d2c7da991513eb22de720f26223f.zip |
[XCore] Fix some Include What You Use warnings; other minor fixes (NFC).
This is preparation to reduce MCExpr.h dependencies.
llvm-svn: 294051
-rw-r--r-- | llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/XCore/InstPrinter/XCoreInstPrinter.h | 6 |
2 files changed, 9 insertions, 3 deletions
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 <cassert> + 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 |