[llvm] r266500 - Add some missing #includes, found by C++ modules selfhost.
Richard Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 15 17:42:37 PDT 2016
Author: rsmith
Date: Fri Apr 15 19:42:37 2016
New Revision: 266500
URL: http://llvm.org/viewvc/llvm-project?rev=266500&view=rev
Log:
Add some missing #includes, found by C++ modules selfhost.
Modified:
llvm/trunk/include/llvm/ADT/STLExtras.h
llvm/trunk/include/llvm/Support/type_traits.h
Modified: llvm/trunk/include/llvm/ADT/STLExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/STLExtras.h?rev=266500&r1=266499&r2=266500&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/STLExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/STLExtras.h Fri Apr 15 19:42:37 2016
@@ -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 {
//===----------------------------------------------------------------------===//
Modified: llvm/trunk/include/llvm/Support/type_traits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/type_traits.h?rev=266500&r1=266499&r2=266500&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/type_traits.h (original)
+++ llvm/trunk/include/llvm/Support/type_traits.h Fri Apr 15 19:42:37 2016
@@ -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
More information about the llvm-commits
mailing list