aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-09 03:40:30 +0000
committerChris Lattner <sabre@nondot.org>2007-10-09 03:40:30 +0000
commitbe2c4596cb562bbb216af2a0dd5c3b5c489e722c (patch)
treeb537c3a5b68be4e6b21445e17440c41503a7e59d
parent8262df3aa49feaae18a86d21ed8a20427d638218 (diff)
Change a #include into a forward declaration
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42781 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/FoldingSet.h2
-rw-r--r--lib/Support/FoldingSet.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h
index 6f486512e5..c567895594 100644
--- a/include/llvm/ADT/FoldingSet.h
+++ b/include/llvm/ADT/FoldingSet.h
@@ -18,10 +18,10 @@
#include "llvm/Support/DataTypes.h"
#include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/APFloat.h"
#include <string>
namespace llvm {
+ class APFloat;
/// This folding set used for two purposes:
/// 1. Given information about a node we want to create, look up the unique
diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp
index d099d90fe2..059b780565 100644
--- a/lib/Support/FoldingSet.cpp
+++ b/lib/Support/FoldingSet.cpp
@@ -15,6 +15,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/ADT/FoldingSet.h"
+#include "llvm/ADT/APFloat.h"
#include "llvm/Support/MathExtras.h"
#include <cassert>
using namespace llvm;