add missing includes for the build with use_libcxx_modules
This is to fix build error when we set use_libcxx_modules=true in
chromium build.
Bug: 40263312
Change-Id: Ic011caba5e336248829c93c5819d358697b7a3a4
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/74688
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Commit-Queue: Shahbaz Youssefi <syoussefi@google.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@google.com>
Tested-by: Shahbaz Youssefi <syoussefi@google.com>
diff --git a/third_party/SPIRV-Tools/source/cfa.h b/third_party/SPIRV-Tools/source/cfa.h
index 9ae3e39..dc8b9ba 100644
--- a/third_party/SPIRV-Tools/source/cfa.h
+++ b/third_party/SPIRV-Tools/source/cfa.h
@@ -15,6 +15,8 @@
#ifndef SOURCE_CFA_H_
#define SOURCE_CFA_H_
+#include <stddef.h>
+
#include <algorithm>
#include <cassert>
#include <cstdint>
diff --git a/third_party/SPIRV-Tools/tools/util/flags.cpp b/third_party/SPIRV-Tools/tools/util/flags.cpp
index 11b8967..6198e4b 100644
--- a/third_party/SPIRV-Tools/tools/util/flags.cpp
+++ b/third_party/SPIRV-Tools/tools/util/flags.cpp
@@ -14,6 +14,7 @@
#include "flags.h"
+#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <iostream>
diff --git a/third_party/llvm-10.0/llvm/include/llvm/ADT/PostOrderIterator.h b/third_party/llvm-10.0/llvm/include/llvm/ADT/PostOrderIterator.h
index 2fe7447..8d1b367 100644
--- a/third_party/llvm-10.0/llvm/include/llvm/ADT/PostOrderIterator.h
+++ b/third_party/llvm-10.0/llvm/include/llvm/ADT/PostOrderIterator.h
@@ -19,6 +19,7 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/iterator_range.h"
+#include <algorithm>
#include <iterator>
#include <set>
#include <utility>
diff --git a/third_party/llvm-10.0/llvm/include/llvm/IR/ProfileSummary.h b/third_party/llvm-10.0/llvm/include/llvm/IR/ProfileSummary.h
index 78635ec..c09365b 100644
--- a/third_party/llvm-10.0/llvm/include/llvm/IR/ProfileSummary.h
+++ b/third_party/llvm-10.0/llvm/include/llvm/IR/ProfileSummary.h
@@ -15,6 +15,7 @@
#include <algorithm>
#include <cstdint>
+#include <utility>
#include <vector>
namespace llvm {
diff --git a/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h b/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
index ffac5ee..8aee298 100644
--- a/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
+++ b/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
@@ -18,6 +18,7 @@
#include "llvm-c/Disassembler.h"
#include "llvm/MC/MCDisassembler/MCSymbolizer.h"
#include <memory>
+#include <utility>
namespace llvm {
diff --git a/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h b/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h
index b7ca83a..6c151a3 100644
--- a/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h
+++ b/third_party/llvm-10.0/llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h
@@ -19,6 +19,7 @@
#include <algorithm>
#include <cstdint>
#include <memory>
+#include <utility>
namespace llvm {
diff --git a/third_party/llvm-10.0/llvm/include/llvm/Support/Chrono.h b/third_party/llvm-10.0/llvm/include/llvm/Support/Chrono.h
index 334ab60..7c31177 100644
--- a/third_party/llvm-10.0/llvm/include/llvm/Support/Chrono.h
+++ b/third_party/llvm-10.0/llvm/include/llvm/Support/Chrono.h
@@ -14,6 +14,7 @@
#include <chrono>
#include <ctime>
+#include <ratio>
namespace llvm {
diff --git a/third_party/llvm-10.0/llvm/lib/Support/Path.cpp b/third_party/llvm-10.0/llvm/lib/Support/Path.cpp
index 3c9a08c..00d5b85 100644
--- a/third_party/llvm-10.0/llvm/lib/Support/Path.cpp
+++ b/third_party/llvm-10.0/llvm/lib/Support/Path.cpp
@@ -19,6 +19,7 @@
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
+#include <errno.h>
#include <cctype>
#include <cstring>
diff --git a/third_party/llvm-10.0/llvm/lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.h b/third_party/llvm-10.0/llvm/lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.h
index dc72331..160843e 100644
--- a/third_party/llvm-10.0/llvm/lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.h
+++ b/third_party/llvm-10.0/llvm/lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.h
@@ -14,6 +14,7 @@
#define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
#include "llvm/MC/MCDisassembler/MCExternalSymbolizer.h"
+#include <utility>
namespace llvm {