diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-08-09 21:39:38 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-08-09 21:39:38 +0000 |
| commit | a09b01b2c147fb0b4f8a4473c35376406abe7d23 (patch) | |
| tree | 033160f9f2f677dbbfede7504ea3908f82796ab1 /llvm/lib | |
| parent | 959a5fbf8eb83a50a811382b9778293584cb0345 (diff) | |
| download | bcm5719-llvm-a09b01b2c147fb0b4f8a4473c35376406abe7d23.tar.gz bcm5719-llvm-a09b01b2c147fb0b4f8a4473c35376406abe7d23.zip | |
UnaryOperator::create should take a name just like BinaryOperator::create
llvm-svn: 3279
Diffstat (limited to 'llvm/lib')
| -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 //===----------------------------------------------------------------------===// |

