diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 06:23:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 06:23:49 +0000 |
commit | acc5f3e42334525bf28c86471551f83dfce222d5 (patch) | |
tree | b8fd5ed45f62c05e780454142381272501603342 /lib/CodeGen | |
parent | c4a1dea2dc56bd1357ec91b829a0b9e68229a13e (diff) |
More #include cleaning
- Kill unnecessary #includes in .cpp files. This is an automatic
sweep so some things removed are actually used, but happen to be
included by a previous header. I tried to get rid of the obvious
examples and this was the easiest way to trim the #includes in one
fell swoop.
- We now return to regularly scheduled development.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGBuiltin.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/CGExpr.cpp | 7 | ||||
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 7 | ||||
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 5 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 5 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/ModuleBuilder.cpp | 3 |
9 files changed, 0 insertions, 41 deletions
diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index c40abf65af..66d4e60c96 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -15,12 +15,8 @@ #include "CodeGenModule.h" #include "clang/Basic/TargetInfo.h" #include "clang/AST/ASTContext.h" -#include "clang/AST/Builtins.h" #include "clang/AST/Decl.h" -#include "clang/AST/Expr.h" #include "clang/AST/TargetBuiltins.h" -#include "llvm/Constants.h" -#include "llvm/Function.h" #include "llvm/Intrinsics.h" using namespace clang; using namespace CodeGen; diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index d83775ce3e..68878a2e51 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -14,14 +14,7 @@ #include "CodeGenFunction.h" #include "CodeGenModule.h" #include "clang/AST/ASTContext.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" -#include "clang/Basic/TargetInfo.h" -#include "llvm/Constants.h" -#include "llvm/DerivedTypes.h" -#include "llvm/Function.h" -#include "llvm/GlobalVariable.h" -#include "llvm/Support/MathExtras.h" #include "llvm/Target/TargetData.h" using namespace clang; using namespace CodeGen; diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 91e7e63ca3..d1545a2d35 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -14,11 +14,7 @@ #include "CGObjCRuntime.h" #include "CodeGenFunction.h" #include "CodeGenModule.h" -#include "clang/AST/ExprObjC.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" -#include "llvm/Constant.h" -#include "llvm/Function.h" using namespace clang; using namespace CodeGen; diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index b9d6221f09..faf6fa94fc 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -12,15 +12,8 @@ //===----------------------------------------------------------------------===// #include "CGObjCRuntime.h" -#include "CodeGenModule.h" -#include "clang/AST/ASTContext.h" #include "clang/AST/Decl.h" -#include "llvm/Module.h" -#include "llvm/Support/Compiler.h" #include "llvm/Support/IRBuilder.h" -#include "llvm/ADT/SmallVector.h" -#include "llvm/ADT/StringMap.h" -#include <map> using namespace clang; diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 0246ba2ee8..bfcddd2df3 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -14,12 +14,8 @@ #include "CGDebugInfo.h" #include "CodeGenModule.h" #include "CodeGenFunction.h" -#include "clang/AST/ASTContext.h" #include "clang/AST/StmtVisitor.h" #include "clang/Basic/TargetInfo.h" -#include "llvm/Constants.h" -#include "llvm/DerivedTypes.h" -#include "llvm/Function.h" #include "llvm/InlineAsm.h" #include "llvm/ADT/StringExtras.h" using namespace clang; diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index bac317c9ba..d02c860a10 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -17,11 +17,6 @@ #include "clang/Basic/TargetInfo.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Decl.h" -#include "clang/AST/DeclObjC.h" -#include "llvm/CallingConv.h" -#include "llvm/Constants.h" -#include "llvm/DerivedTypes.h" -#include "llvm/Function.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Support/CFG.h" using namespace clang; diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index e0309e1654..c77dfa6a81 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -15,20 +15,15 @@ #include "CodeGenModule.h" #include "CodeGenFunction.h" #include "clang/AST/ASTContext.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" #include "clang/Basic/Diagnostic.h" -#include "clang/Basic/LangOptions.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/TargetInfo.h" #include "llvm/CallingConv.h" -#include "llvm/Constants.h" -#include "llvm/DerivedTypes.h" #include "llvm/Module.h" #include "llvm/Intrinsics.h" #include "llvm/Target/TargetData.h" #include "llvm/Analysis/Verifier.h" -#include <algorithm> using namespace clang; using namespace CodeGen; diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index ffea22251f..ab0829e81f 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -12,9 +12,7 @@ //===----------------------------------------------------------------------===// #include "CodeGenTypes.h" -#include "clang/Basic/TargetInfo.h" #include "clang/AST/ASTContext.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" #include "clang/AST/Expr.h" #include "clang/AST/RecordLayout.h" diff --git a/lib/CodeGen/ModuleBuilder.cpp b/lib/CodeGen/ModuleBuilder.cpp index 176d39e85d..7c43943eac 100644 --- a/lib/CodeGen/ModuleBuilder.cpp +++ b/lib/CodeGen/ModuleBuilder.cpp @@ -14,7 +14,6 @@ #include "clang/CodeGen/ModuleBuilder.h" #include "CodeGenModule.h" #include "clang/AST/ASTContext.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" #include "clang/AST/Expr.h" using namespace clang; @@ -24,10 +23,8 @@ using namespace clang; #include "clang/Basic/Diagnostic.h" #include "clang/Basic/TargetInfo.h" -#include "clang/CodeGen/ModuleBuilder.h" #include "llvm/Module.h" #include "llvm/Target/TargetData.h" -#include "llvm/Target/TargetMachine.h" #include "llvm/Support/Compiler.h" #include "llvm/ADT/OwningPtr.h" |