[PATCH] D103645: [NFC] Add missing includes for LLVM_ENABLE_MODULES builds
Markus Böck via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 3 14:03:56 PDT 2021
zero9178 created this revision.
zero9178 added reviewers: nikic, MaskRay.
Herald added a subscriber: dexonsmith.
zero9178 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103645
Files:
llvm/include/llvm/CodeGen/MBFIWrapper.h
llvm/include/llvm/Support/CFGUpdate.h
Index: llvm/include/llvm/Support/CFGUpdate.h
===================================================================
--- llvm/include/llvm/Support/CFGUpdate.h
+++ 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"
Index: llvm/include/llvm/CodeGen/MBFIWrapper.h
===================================================================
--- llvm/include/llvm/CodeGen/MBFIWrapper.h
+++ 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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103645.349678.patch
Type: text/x-patch
Size: 808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210603/0dbdcfe9/attachment.bin>
More information about the llvm-commits
mailing list