Add includes to get ptrdiff_t. This is needed by gcc-4.6 which has
authorDuncan Sands <baldrick@free.fr>
Thu, 10 Jun 2010 10:13:58 +0000 (10:13 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 10 Jun 2010 10:13:58 +0000 (10:13 +0000)
done some more header trimming, resulting in cstdef being included
by less header files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105786 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseMap.h
include/llvm/ADT/SmallVector.h
include/llvm/ADT/ilist.h
include/llvm/Use.h

index 5c99473..c53e255 100644 (file)
@@ -22,6 +22,7 @@
 #include <new>
 #include <utility>
 #include <cassert>
+#include <cstddef>
 #include <cstring>
 
 namespace llvm {
index e4fa809..b966864 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Support/type_traits.h"
 #include <algorithm>
 #include <cassert>
+#include <cstddef>
 #include <cstdlib>
 #include <cstring>
 #include <memory>
index e4d26dd..9479d00 100644 (file)
@@ -39,6 +39,7 @@
 #define LLVM_ADT_ILIST_H
 
 #include <cassert>
+#include <cstddef>
 #include <iterator>
 
 namespace llvm {
index 970f69b..2759338 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "llvm/Support/Casting.h"
 #include "llvm/ADT/PointerIntPair.h"
+#include <cstddef>
 #include <iterator>
 
 namespace llvm {