From 875e739473026f71e30aa24f3a98a25ae9ac67e9 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Sun, 9 Jun 2013 16:56:53 +0000 Subject: [PATCH] [CodeGen] Make CGCleanup.h include what it now uses Also move CGCleanup.h to the top of CGCleanup.cpp to verify that CGCleanup.h really includes what it needs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183632 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGCleanup.cpp | 2 +- lib/CodeGen/CGCleanup.h | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/CodeGen/CGCleanup.cpp b/lib/CodeGen/CGCleanup.cpp index b41c7e0970..9f693ca8b7 100644 --- a/lib/CodeGen/CGCleanup.cpp +++ b/lib/CodeGen/CGCleanup.cpp @@ -17,8 +17,8 @@ // //===----------------------------------------------------------------------===// -#include "CodeGenFunction.h" #include "CGCleanup.h" +#include "CodeGenFunction.h" using namespace clang; using namespace CodeGen; diff --git a/lib/CodeGen/CGCleanup.h b/lib/CodeGen/CGCleanup.h index 5e22a66ef4..40a7502973 100644 --- a/lib/CodeGen/CGCleanup.h +++ b/lib/CodeGen/CGCleanup.h @@ -17,12 +17,9 @@ #include "clang/Basic/LLVM.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" - -namespace llvm { - class Value; - class BasicBlock; - class BranchInst; -} +#include "llvm/IR/BasicBlock.h" +#include "llvm/IR/Value.h" +#include "llvm/IR/Instructions.h" namespace clang { namespace CodeGen { -- 2.40.0