diff options
Diffstat (limited to 'llvm/lib/VMCore/iOperators.cpp')
| -rw-r--r-- | llvm/lib/VMCore/iOperators.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/llvm/lib/VMCore/iOperators.cpp b/llvm/lib/VMCore/iOperators.cpp index 75cac7d59d5..bc37df5cb7f 100644 --- a/llvm/lib/VMCore/iOperators.cpp +++ b/llvm/lib/VMCore/iOperators.cpp @@ -6,16 +6,16 @@ #include "llvm/iOperators.h" #include "llvm/Type.h" -#include <iostream> using std::cerr; //===----------------------------------------------------------------------===// // UnaryOperator Class //===----------------------------------------------------------------------===// -UnaryOperator *UnaryOperator::create(UnaryOps Op, Value *Source) { +UnaryOperator *UnaryOperator::create(UnaryOps Op, Value *Source, + const std::string &Name) { switch (Op) { - case Not: return new GenericUnaryInst(Op, Source); + case Not: return new GenericUnaryInst(Op, Source, Name); default: cerr << "Don't know how to Create UnaryOperator " << Op << "\n"; return 0; @@ -24,11 +24,6 @@ UnaryOperator *UnaryOperator::create(UnaryOps Op, Value *Source) { //===----------------------------------------------------------------------===// -// GenericUnaryOperator Class -//===----------------------------------------------------------------------===// - - -//===----------------------------------------------------------------------===// // BinaryOperator Class //===----------------------------------------------------------------------===// @@ -73,11 +68,6 @@ bool BinaryOperator::swapOperands() { //===----------------------------------------------------------------------===// -// GenericBinaryInst Class -//===----------------------------------------------------------------------===// - - -//===----------------------------------------------------------------------===// // SetCondInst Class //===----------------------------------------------------------------------===// |

