summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-04-16 00:42:37 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-04-16 00:42:37 +0000
commit7c907ccb48c259f48f12f321fb0944a8cf8dfbb7 (patch)
tree2cd3acc0c409de633ccc1de19b55cbde6a417756
parent8f8d3db940bb7515ac56c5a096bdb6e3df435828 (diff)
downloadbcm5719-llvm-7c907ccb48c259f48f12f321fb0944a8cf8dfbb7.tar.gz
bcm5719-llvm-7c907ccb48c259f48f12f321fb0944a8cf8dfbb7.zip
Add some missing #includes, found by C++ modules selfhost.
llvm-svn: 266500
-rw-r--r--llvm/include/llvm/ADT/STLExtras.h4
-rw-r--r--llvm/include/llvm/Support/type_traits.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index 06a1756e26f..0d547c29572 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -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 {
//===----------------------------------------------------------------------===//
diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h
index 2a429585201..7706ff52719 100644
--- a/llvm/include/llvm/Support/type_traits.h
+++ b/llvm/include/llvm/Support/type_traits.h
@@ -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
OpenPOWER on IntegriCloud