aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-10-21 17:43:38 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-10-21 17:43:38 +0000
commitffd87cb46a7becc61247bacdb9dc1718856fcdd9 (patch)
tree4cb392fac9271f225c7d2139f042a8b1f1521d54
parent5827a82a5870fcb59a9fb34e6891ca0f009d282a (diff)
downloadllvm-ffd87cb46a7becc61247bacdb9dc1718856fcdd9.zip
llvm-ffd87cb46a7becc61247bacdb9dc1718856fcdd9.tar.gz
llvm-ffd87cb46a7becc61247bacdb9dc1718856fcdd9.tar.bz2
[NFC] Add missing include to fix modules build
This header doesn't seem to be parsable on its own and breaks the module build therefore with the following error: While building module 'LLVM_Backend' imported from llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:14: In file included from <module-includes>:62: llvm-project/llvm/include/llvm/CodeGen/MachinePipeliner.h:91:20: error: declaration of 'AAResultsWrapperPass' must be imported from module 'LLVM_Analysis.AliasAnalysis' before it is required AU.addRequired<AAResultsWrapperPass>(); ^ llvm-project/llvm/include/llvm/Analysis/AliasAnalysis.h:1157:7: note: previous declaration is here class AAResultsWrapperPass : public FunctionPass { ^ llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:14:10: fatal error: could not build module 'LLVM_Backend' ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. llvm-svn: 375433
-rw-r--r--llvm/include/llvm/CodeGen/MachinePipeliner.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachinePipeliner.h b/llvm/include/llvm/CodeGen/MachinePipeliner.h
index 893725c..e9cf7e1 100644
--- a/llvm/include/llvm/CodeGen/MachinePipeliner.h
+++ b/llvm/include/llvm/CodeGen/MachinePipeliner.h
@@ -40,6 +40,8 @@
#ifndef LLVM_LIB_CODEGEN_MACHINEPIPELINER_H
#define LLVM_LIB_CODEGEN_MACHINEPIPELINER_H
+#include "llvm/Analysis/AliasAnalysis.h"
+
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/RegisterClassInfo.h"
#include "llvm/CodeGen/ScheduleDAGInstrs.h"