the tblgen produced 'getRegisterName' method does not access
the object, make it static instead of const.
llvm-svn: 81711
diff --git a/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
index 74d398b..4902368 100644
--- a/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
+++ b/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
@@ -49,7 +49,7 @@
return "Alpha Assembly Printer";
}
void printInstruction(const MachineInstr *MI);
- const char *getRegisterName(unsigned RegNo) const;
+ static const char *getRegisterName(unsigned RegNo);
void printOp(const MachineOperand &MO, bool IsCallOp = false);
void printOperand(const MachineInstr *MI, int opNum);