Skip to content

Commit ffd87cb

Browse files
committed
[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
1 parent 5827a82 commit ffd87cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/include/llvm/CodeGen/MachinePipeliner.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#ifndef LLVM_LIB_CODEGEN_MACHINEPIPELINER_H
4141
#define LLVM_LIB_CODEGEN_MACHINEPIPELINER_H
4242

43+
#include "llvm/Analysis/AliasAnalysis.h"
44+
4345
#include "llvm/CodeGen/MachineDominators.h"
4446
#include "llvm/CodeGen/RegisterClassInfo.h"
4547
#include "llvm/CodeGen/ScheduleDAGInstrs.h"

0 commit comments

Comments
 (0)