summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-07 20:17:23 +0000
committerChris Lattner <sabre@nondot.org>2001-07-07 20:17:23 +0000
commit9f3d27654a9c60104c93cacc869709d5d30e5367 (patch)
treec5ab02c551a01ea9c993456aa1229bfb9a06a7f4 /lib/VMCore
parenta41f50dea8573e4a610b5aa5e45b5c368559b084 (diff)
downloadllvm-9f3d27654a9c60104c93cacc869709d5d30e5367.tar.gz
llvm-9f3d27654a9c60104c93cacc869709d5d30e5367.tar.bz2
llvm-9f3d27654a9c60104c93cacc869709d5d30e5367.tar.xz
Convert BinaryOperand and UnaryOperator to only take instruction types of
the appropriate enum git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/InstrTypes.cpp2
-rw-r--r--lib/VMCore/iOperators.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/InstrTypes.cpp b/lib/VMCore/InstrTypes.cpp
index cda99a9446..9d3262cbda 100644
--- a/lib/VMCore/InstrTypes.cpp
+++ b/lib/VMCore/InstrTypes.cpp
@@ -12,7 +12,7 @@
#include <algorithm> // find
// TODO: Move to getUnaryOperator iUnary.cpp when and if it exists!
-UnaryOperator *UnaryOperator::create(unsigned Op, Value *Source) {
+UnaryOperator *UnaryOperator::create(UnaryOps Op, Value *Source) {
switch (Op) {
default:
cerr << "Don't know how to GetUnaryOperator " << Op << endl;
diff --git a/lib/VMCore/iOperators.cpp b/lib/VMCore/iOperators.cpp
index ef6933adb2..61d5d26d2b 100644
--- a/lib/VMCore/iOperators.cpp
+++ b/lib/VMCore/iOperators.cpp
@@ -7,13 +7,13 @@
#include "llvm/iBinary.h"
#include "llvm/Type.h"
-BinaryOperator *BinaryOperator::create(unsigned Op, Value *S1, Value *S2,
+BinaryOperator *BinaryOperator::create(BinaryOps Op, Value *S1, Value *S2,
const string &Name) {
switch (Op) {
// Binary comparison operators...
case SetLT: case SetGT: case SetLE:
case SetGE: case SetEQ: case SetNE:
- return new SetCondInst((BinaryOps)Op, S1, S2, Name);
+ return new SetCondInst(Op, S1, S2, Name);
default:
return new GenericBinaryInst(Op, S1, S2, Name);