OSDN Git Service

Add some missing #includes, found by C++ modules selfhost.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 16 Apr 2016 00:42:37 +0000 (00:42 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 16 Apr 2016 00:42:37 +0000 (00:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266500 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/STLExtras.h
include/llvm/Support/type_traits.h

index 06a1756..0d547c2 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef LLVM_ADT_STLEXTRAS_H
 #define LLVM_ADT_STLEXTRAS_H
 
-#include "llvm/Support/Compiler.h"
 #include <algorithm> // for std::all_of
 #include <cassert>
 #include <cstddef> // for std::size_t
@@ -27,6 +26,9 @@
 #include <memory>
 #include <utility> // for std::pair
 
+#include "llvm/ADT/iterator_range.h"
+#include "llvm/Support/Compiler.h"
+
 namespace llvm {
 
 //===----------------------------------------------------------------------===//
index 2a42958..7706ff5 100644 (file)
@@ -17,6 +17,8 @@
 #include <type_traits>
 #include <utility>
 
+#include "llvm/Support/Compiler.h"
+
 #ifndef __has_feature
 #define LLVM_DEFINED_HAS_FEATURE
 #define __has_feature(x) 0