From b9a7187f4baeac921308bf13b4624216ba4bf93c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 16 Jun 2011 21:27:52 +0000 Subject: prune #includes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133194 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Type.cpp | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'lib') diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index ae45d9aed4..5188e5f0f8 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -12,23 +12,7 @@ //===----------------------------------------------------------------------===// #include "LLVMContextImpl.h" -#include "llvm/DerivedTypes.h" -#include "llvm/Constants.h" -#include "llvm/Assembly/Writer.h" -#include "llvm/LLVMContext.h" -#include "llvm/Metadata.h" -#include "llvm/ADT/ArrayRef.h" -#include "llvm/ADT/DepthFirstIterator.h" -#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/SCCIterator.h" -#include "llvm/ADT/STLExtras.h" -#include "llvm/Support/Compiler.h" -#include "llvm/Support/Debug.h" -#include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/MathExtras.h" -#include "llvm/Support/raw_ostream.h" -#include "llvm/Support/Threading.h" #include #include using namespace llvm; @@ -87,7 +71,9 @@ void Type::destroy() const { operator delete(const_cast(this)); return; - } else if (const OpaqueType *opaque_this = dyn_cast(this)) { + } + + if (const OpaqueType *opaque_this = dyn_cast(this)) { LLVMContextImpl *pImpl = this->getContext().pImpl; pImpl->OpaqueTypes.erase(opaque_this); } @@ -253,8 +239,8 @@ bool Type::isSizedDerivedType() const { if (const ArrayType *ATy = dyn_cast(this)) return ATy->getElementType()->isSized(); - if (const VectorType *PTy = dyn_cast(this)) - return PTy->getElementType()->isSized(); + if (const VectorType *VTy = dyn_cast(this)) + return VTy->getElementType()->isSized(); if (!this->isStructTy()) return false; -- cgit v1.2.3