Fix some build warnings.

DEBUG_TYPE should be defined before the inclusion of LLVM's Support/Debug.h.

Swift SVN r18640
This commit is contained in:
Mark Lacey
2014-05-26 20:17:54 +00:00
parent b25eeec435
commit cd00cfbf8f
11 changed files with 11 additions and 11 deletions

View File

@@ -14,11 +14,11 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "swift-basic"
#include "swift/Basic/DiagnosticConsumer.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#define DEBUG_TYPE "swift-basic"
using namespace swift;
DiagnosticConsumer::~DiagnosticConsumer() { }

View File

@@ -14,6 +14,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "irgen"
#include "swift/Subsystems.h"
#include "swift/AST/AST.h"
#include "swift/AST/DiagnosticsIRGen.h"
@@ -41,7 +42,6 @@
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "IRGenModule.h"
#define DEBUG_TYPE "irgen"
using namespace swift;
using namespace irgen;

View File

@@ -15,6 +15,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "irgen"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Instructions.h"
@@ -52,7 +53,6 @@
#include "ReferenceTypeInfo.h"
#include "GenType.h"
#include "WeakTypeInfo.h"
#define DEBUG_TYPE "irgen"
using namespace swift;
using namespace irgen;

View File

@@ -15,6 +15,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "swift-immediate"
#include "swift/Immediate/Immediate.h"
#include "swift/Immediate/Helpers.h"
@@ -70,7 +71,6 @@
#include <wchar.h>
#include <histedit.h>
#include <dlfcn.h>
#define DEBUG_TYPE "swift-immediate"
using namespace swift;

View File

@@ -16,6 +16,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "libsil"
#include "swift/SIL/SILType.h"
#include "swift/SIL/SILModule.h"
#include "swift/AST/Decl.h"
@@ -27,7 +28,6 @@
#include "clang/AST/DeclObjC.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#define DEBUG_TYPE "libsil"
using namespace swift;
using namespace swift::Lowering;

View File

@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "sil-module"
#include "swift/SIL/SILModule.h"
#include "swift/SIL/SILExternalSource.h"
#include "swift/SIL/SILVisitor.h"
@@ -19,7 +20,6 @@
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "sil-module"
using namespace swift;
STATISTIC(NumFuncLinked, "Number of SIL functions linked");

View File

@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "libsil"
#include "swift/AST/ArchetypeBuilder.h"
#include "swift/AST/ASTContext.h"
#include "swift/AST/CanTypeVisitor.h"
@@ -25,7 +26,6 @@
#include "swift/SIL/SILModule.h"
#include "swift/SIL/TypeLowering.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "libsil"
using namespace swift;
using namespace Lowering;

View File

@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "silverifier"
#include "swift/SIL/SILFunction.h"
#include "swift/SIL/SILModule.h"
#include "swift/SIL/SILVisitor.h"
@@ -25,7 +26,6 @@
#include "llvm/Support/Debug.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/StringSet.h"
#define DEBUG_TYPE "silverifier"
using namespace swift;
using Lowering::AbstractionPattern;

View File

@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "silgen"
#include "SILGenFunction.h"
#include "llvm/ADT/Optional.h"
#include "swift/Strings.h"
@@ -24,7 +25,6 @@
#include "swift/SIL/SILDebugScope.h"
#include "swift/Subsystems.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "silgen"
using namespace swift;
using namespace Lowering;

View File

@@ -10,10 +10,10 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "sil-inliner"
#include "swift/SILPasses/Utils/SILInliner.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "sil-inliner"
using namespace swift;
/// \brief Inlines the callee of a given ApplyInst (which must be the value of a

View File

@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "deserialize"
#include "DeserializeSIL.h"
#include "swift/Serialization/ModuleFile.h"
#include "SILFormat.h"
@@ -23,7 +24,6 @@
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/OnDiskHashTable.h"
#define DEBUG_TYPE "deserialize"
using namespace swift;
using namespace swift::serialization;