summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-30 20:20:15 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-30 20:20:15 +0000
commit08600bcf65b3a4ecd249d2316184a0bf45cd4962 (patch)
tree2059e85a4bea81e43659c732db9035fa1d3da42b /llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
parent8284374b07759a28c0856fc44c4088355d6b1318 (diff)
downloadbcm5719-llvm-08600bcf65b3a4ecd249d2316184a0bf45cd4962.tar.gz
bcm5719-llvm-08600bcf65b3a4ecd249d2316184a0bf45cd4962.zip
Use the dwarf->llvm mapping to print register names in the cfi
directives. Fixes PR9826. llvm-svn: 132317
Diffstat (limited to 'llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
index c8db0c40476..dd9f2744e22 100644
--- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
@@ -26,6 +26,9 @@ StringRef PPCInstPrinter::getOpcodeName(unsigned Opcode) const {
return getInstructionName(Opcode);
}
+StringRef PPCInstPrinter::getRegName(unsigned RegNo) const {
+ return getRegisterName(RegNo);
+}
void PPCInstPrinter::printInst(const MCInst *MI, raw_ostream &O) {
// Check for slwi/srwi mnemonics.
OpenPOWER on IntegriCloud