projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename TargetAsmParser to MCTargetAsmParser and TargetAsmLexer to MCTargetAsmLexer...
[oota-llvm.git]
/
lib
/
Target
/
PowerPC
/
InstPrinter
/
PPCInstPrinter.cpp
diff --git
a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
b/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
index c8db0c40476540b04e9d5aeed8871a1c2f525c0e..8f34b19925ee40d7c34484c57553c8eabdb4c334 100644
(file)
--- a/
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
+++ b/
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
@@
-13,7
+13,8
@@
#define DEBUG_TYPE "asm-printer"
#include "PPCInstPrinter.h"
#define DEBUG_TYPE "asm-printer"
#include "PPCInstPrinter.h"
-#include "PPCPredicates.h"
+#include "MCTargetDesc/PPCBaseInfo.h"
+#include "MCTargetDesc/PPCPredicates.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Support/raw_ostream.h"
@@
-26,6
+27,9
@@
StringRef PPCInstPrinter::getOpcodeName(unsigned Opcode) const {
return getInstructionName(Opcode);
}
return getInstructionName(Opcode);
}
+void PPCInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
+ OS << getRegisterName(RegNo);
+}
void PPCInstPrinter::printInst(const MCInst *MI, raw_ostream &O) {
// Check for slwi/srwi mnemonics.
void PPCInstPrinter::printInst(const MCInst *MI, raw_ostream &O) {
// Check for slwi/srwi mnemonics.