diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-06-16 21:27:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-06-16 21:27:52 +0000 |
| commit | 99807bc8ced6d9a73f6b5a05cc4e040305201373 (patch) | |
| tree | 0e5571e21f587192407f010fb53ab6088d5a2a7b /llvm | |
| parent | df509331c81434569b7628b01fd0d2f560c32563 (diff) | |
| download | bcm5719-llvm-99807bc8ced6d9a73f6b5a05cc4e040305201373.tar.gz bcm5719-llvm-99807bc8ced6d9a73f6b5a05cc4e040305201373.zip | |
prune #includes.
llvm-svn: 133194
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/VMCore/Type.cpp | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index ae45d9aed4d..5188e5f0f83 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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 <algorithm> #include <cstdarg> using namespace llvm; @@ -87,7 +71,9 @@ void Type::destroy() const { operator delete(const_cast<Type *>(this)); return; - } else if (const OpaqueType *opaque_this = dyn_cast<OpaqueType>(this)) { + } + + if (const OpaqueType *opaque_this = dyn_cast<OpaqueType>(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<ArrayType>(this)) return ATy->getElementType()->isSized(); - if (const VectorType *PTy = dyn_cast<VectorType>(this)) - return PTy->getElementType()->isSized(); + if (const VectorType *VTy = dyn_cast<VectorType>(this)) + return VTy->getElementType()->isSized(); if (!this->isStructTy()) return false; |

