From 631a19d89455e542295abb509493fc1581a10099 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 May 2006 17:29:17 +0000 Subject: [PATCH] This method doesn't need to be virtual, thanks to Reid for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28206 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instruction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 2b025dd8753..a5df1547405 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -106,7 +106,7 @@ public: /// one of the enums that is coming soon (down below)... /// unsigned getOpcode() const { return getValueType() - InstructionVal; } - virtual const char *getOpcodeName() const { + const char *getOpcodeName() const { return getOpcodeName(getOpcode()); } static const char* getOpcodeName(unsigned OpCode);