[llvm] 619fa0d - [NFC] Add missing includes for LLVM_ENABLE_MODULES builds
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 3 14:29:10 PDT 2021
Author: zero9178
Date: 2021-06-03T23:29:03+02:00
New Revision: 619fa0d7fc8a08f871f33815083adb8bb07b9751
URL: https://github.com/llvm/llvm-project/commit/619fa0d7fc8a08f871f33815083adb8bb07b9751
DIFF: https://github.com/llvm/llvm-project/commit/619fa0d7fc8a08f871f33815083adb8bb07b9751.diff
LOG: [NFC] Add missing includes for LLVM_ENABLE_MODULES builds
Building LLVM with the LLVM_ENABLE_MODULES cmake option fails when the modules are being compiled due to missing includes. This is a side effect of some transitive includes that changed recently.
Differential Revision: https://reviews.llvm.org/D103645
Added:
Modified:
llvm/include/llvm/CodeGen/MBFIWrapper.h
llvm/include/llvm/Support/CFGUpdate.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MBFIWrapper.h b/llvm/include/llvm/CodeGen/MBFIWrapper.h
index bcbf3eedf59de..7c0a4c6e02522 100644
--- a/llvm/include/llvm/CodeGen/MBFIWrapper.h
+++ b/llvm/include/llvm/CodeGen/MBFIWrapper.h
@@ -15,6 +15,7 @@
#define LLVM_CODEGEN_MBFIWRAPPER_H
#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/Optional.h"
#include "llvm/Support/BlockFrequency.h"
namespace llvm {
diff --git a/llvm/include/llvm/Support/CFGUpdate.h b/llvm/include/llvm/Support/CFGUpdate.h
index 3a12b9d86c18a..18c34bb73695a 100644
--- a/llvm/include/llvm/Support/CFGUpdate.h
+++ b/llvm/include/llvm/Support/CFGUpdate.h
@@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_CFGUPDATE_H
#define LLVM_SUPPORT_CFGUPDATE_H
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/Support/Compiler.h"
More information about the llvm-commits
mailing list