commit | 213703ced9eeaa585c06387ae3c643ea4701462e | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Sep 13 20:19:22 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Sep 13 20:19:22 2009 +0000 |
tree | e19a8daa8f3cfc188dfc7b23c24ebd245b136e8c | |
parent | ec219616d65bf4057d0c4509708b31f7979f7ad6 [diff] [blame] |
the tblgen produced 'getRegisterName' method does not access the object, make it static instead of const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81711 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp index 64843c9..452dd12 100644 --- a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp +++ b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
@@ -67,7 +67,7 @@ } void printInstruction(const MachineInstr *MI); // autogenerated. - const char *getRegisterName(unsigned RegNo) const; + static const char *getRegisterName(unsigned RegNo); void printMachineInstruction(const MachineInstr * MI);