aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/InstrTypes.h
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-07-14 22:48:20 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-07-14 22:48:20 +0000
commit5814008f4b77774c8563578e1562c9c24a6750c2 (patch)
tree9743ae14c322aa57ec4cf1bb13b7dad94bf23415 /include/llvm/InstrTypes.h
parent29ab9f83481cd21abf3055c7c32ea1df953ae167 (diff)
downloadexternal_llvm-5814008f4b77774c8563578e1562c9c24a6750c2.zip
external_llvm-5814008f4b77774c8563578e1562c9c24a6750c2.tar.gz
external_llvm-5814008f4b77774c8563578e1562c9c24a6750c2.tar.bz2
Create a static version of Instruction::getOpcodeName(opCode) that
can be invoked with only an opcode (i.e., without an instruction). Move all opCode->opCodeName translations there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/InstrTypes.h')
-rw-r--r--include/llvm/InstrTypes.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h
index e990db7..9a28d64 100644
--- a/include/llvm/InstrTypes.h
+++ b/include/llvm/InstrTypes.h
@@ -27,7 +27,6 @@ public:
// Terminators must implement the methods required by Instruction...
virtual Instruction *clone() const = 0;
- virtual const char *getOpcodeName() const = 0;
// Additionally, they must provide a method to get at the successors of this
// terminator instruction. 'idx' may not be >= the number of successors
@@ -80,8 +79,6 @@ public:
return create(getOpcode(), Operands[0]);
}
- virtual const char *getOpcodeName() const = 0;
-
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const UnaryOperator *) { return true; }
static inline bool classof(const Instruction *I) {
@@ -126,8 +123,6 @@ public:
return create(getOpcode(), Operands[0], Operands[1]);
}
- virtual const char *getOpcodeName() const = 0;
-
// swapOperands - Exchange the two operands to this instruction.
// This instruction is safe to use on any binary instruction and
// does not modify the semantics of the instruction. If the