summaryrefslogtreecommitdiff
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-08 21:30:13 +0000
committerChris Lattner <sabre@nondot.org>2001-06-08 21:30:13 +0000
commit477c2ec3e01ddb67c3c079156f2ee2e1858bec42 (patch)
tree0a0978df36c7f87dae60a99848d549ddd3cd509b /include/llvm/Instruction.h
parentdaa6ae31c18fd948ceaa05a6ef6712612dd70d7f (diff)
downloadllvm-477c2ec3e01ddb67c3c079156f2ee2e1858bec42.tar.gz
llvm-477c2ec3e01ddb67c3c079156f2ee2e1858bec42.tar.bz2
llvm-477c2ec3e01ddb67c3c079156f2ee2e1858bec42.tar.xz
Moved getBinaryOperator to the BinaryOperator class and the getUnaryOperator
to the UnaryOperator class (from the Instruction class). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 415c307e73..0ac1921682 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -85,9 +85,6 @@ public:
return iType >= FirstBinaryOp && iType < NumBinaryOps;
}
- static Instruction *getBinaryOperator(unsigned Op, Value *S1, Value *S2);
- static Instruction *getUnaryOperator (unsigned Op, Value *Source);
-
//----------------------------------------------------------------------
// Exported enumerations...
@@ -156,7 +153,7 @@ public:
unsigned idx;
public:
typedef OperandIterator<_Inst, _Val> _Self;
- typedef forward_iterator_tag iterator_category;
+ typedef bidirectional_iterator_tag iterator_category;
typedef _Val pointer;
inline OperandIterator(_Inst T) : Inst(T), idx(0) {} // begin iterator