[llvm-commits] [llvm] r40530 - /llvm/trunk/lib/VMCore/BasicBlock.cpp
Dan Gohman
djg at cray.com
Thu Jul 26 08:25:08 PDT 2007
Author: djg
Date: Thu Jul 26 10:25:08 2007
New Revision: 40530
URL: http://llvm.org/viewvc/llvm-project?rev=40530&view=rev
Log:
DummyInst's member functions don't need to be virtual.
Modified:
llvm/trunk/lib/VMCore/BasicBlock.cpp
Modified: llvm/trunk/lib/VMCore/BasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/BasicBlock.cpp?rev=40530&r1=40529&r2=40530&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/BasicBlock.cpp (original)
+++ llvm/trunk/lib/VMCore/BasicBlock.cpp Thu Jul 26 10:25:08 2007
@@ -40,11 +40,11 @@
LeakDetector::removeGarbageObject(this);
}
- virtual Instruction *clone() const {
+ Instruction *clone() const {
assert(0 && "Cannot clone EOL");abort();
return 0;
}
- virtual const char *getOpcodeName() const { return "*end-of-list-inst*"; }
+ const char *getOpcodeName() const { return "*end-of-list-inst*"; }
// Methods for support type inquiry through isa, cast, and dyn_cast...
static inline bool classof(const DummyInst *) { return true; }
More information about the llvm-commits
mailing list