diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-14 18:19:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-14 18:19:46 +0000 |
commit | 9c16dba29f2b8d894683b398802d590685e6f7a1 (patch) | |
tree | 699a2c92837d75960676c2f3329e1cfc79cf61c9 /lib/VMCore/iOperators.cpp | |
parent | 935bb0d07138f4844ff5d7f10338121a4fcec86c (diff) |
Remove support for unary operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iOperators.cpp')
-rw-r--r-- | lib/VMCore/iOperators.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/VMCore/iOperators.cpp b/lib/VMCore/iOperators.cpp index f520ff52f5..5b8c26a0d1 100644 --- a/lib/VMCore/iOperators.cpp +++ b/lib/VMCore/iOperators.cpp @@ -1,28 +1,12 @@ -//===-- iOperators.cpp - Implement the Binary & Unary Operators --*- C++ -*--=// +//===-- iOperators.cpp - Implement binary Operators ------------*- C++ -*--===// // -// This file implements the nontrivial binary & unary operator instructions. +// This file implements the nontrivial binary operator instructions. // //===----------------------------------------------------------------------===// #include "llvm/iOperators.h" #include "llvm/Type.h" #include "llvm/Constants.h" -using std::cerr; - -//===----------------------------------------------------------------------===// -// UnaryOperator Class -//===----------------------------------------------------------------------===// - -UnaryOperator *UnaryOperator::create(UnaryOps Op, Value *Source, - const std::string &Name) { - switch (Op) { - case Not: return new GenericUnaryInst(Op, Source, Name); - default: - cerr << "Don't know how to Create UnaryOperator " << Op << "\n"; - return 0; - } -} - //===----------------------------------------------------------------------===// // BinaryOperator Class |