commit | 6e032942cf58d1c41f88609a1cec74eb74940ecd | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Mon May 30 20:20:15 2011 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Mon May 30 20:20:15 2011 +0000 |
tree | 77d932527de7e7874176fa423c653a630cecd119 | |
parent | acbf107d9b9ffeddbcc3d015107c6faff439ee9b [diff] [blame] |
Use the dwarf->llvm mapping to print register names in the cfi directives. Fixes PR9826. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132317 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp index dd6e353..6ff4442 100644 --- a/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp +++ b/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
@@ -41,6 +41,10 @@ &TM.getSubtarget<X86Subtarget>())); } +StringRef X86ATTInstPrinter::getRegName(unsigned RegNo) const { + return getRegisterName(RegNo); +} + void X86ATTInstPrinter::printInst(const MCInst *MI, raw_ostream &OS) { // Try to print any aliases first. if (!printAliasInstr(MI, OS))