//===-- InstrTypes.cpp - Implement Instruction subclasses -------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
//
// This file implements
//
#include "llvm/Constant.h"
#include "llvm/Type.h"
#include <algorithm> // find
+using namespace llvm;
//===----------------------------------------------------------------------===//
// TerminatorInst Class
: Instruction(Type::VoidTy, iType, "", IB) {
}
+TerminatorInst::TerminatorInst(Instruction::TermOps iType, BasicBlock *IAE)
+ : Instruction(Type::VoidTy, iType) {
+ if (IAE) IAE->getInstList().push_back(this);
+}
+
+
+
//===----------------------------------------------------------------------===//
// PHINode Class
//===----------------------------------------------------------------------===//