From 1e28c741b7747c0a6ae484986105391a4e616d6f Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 13 Nov 2019 18:19:54 -0800 Subject: [PATCH] [unittests] Add InitializePasses.h includes Summary: After D70211, Pass.h does not include InitializePasses.h anymore, so these files need to include InitializePasses.h directly. Reviewers: rnk Subscribers: MatzeB, mehdi_amini, zzheng, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70217 --- unittests/Analysis/AliasAnalysisTest.cpp | 1 + unittests/Analysis/CFGTest.cpp | 2 +- unittests/Analysis/UnrollAnalyzerTest.cpp | 1 + unittests/CodeGen/GlobalISel/GISelMITest.h | 1 + unittests/CodeGen/TargetOptionsTest.cpp | 1 + unittests/IR/LegacyPassManagerTest.cpp | 2 +- unittests/MI/LiveIntervalTest.cpp | 1 + 7 files changed, 7 insertions(+), 2 deletions(-) diff --git a/unittests/Analysis/AliasAnalysisTest.cpp b/unittests/Analysis/AliasAnalysisTest.cpp index 80bdcf7dc30..83f4c248193 100644 --- a/unittests/Analysis/AliasAnalysisTest.cpp +++ b/unittests/Analysis/AliasAnalysisTest.cpp @@ -18,6 +18,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/SourceMgr.h" #include "gtest/gtest.h" diff --git a/unittests/Analysis/CFGTest.cpp b/unittests/Analysis/CFGTest.cpp index 107bd085e6f..5ac5306d0a1 100644 --- a/unittests/Analysis/CFGTest.cpp +++ b/unittests/Analysis/CFGTest.cpp @@ -16,7 +16,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" -#include "llvm/Pass.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/SourceMgr.h" #include "gtest/gtest.h" diff --git a/unittests/Analysis/UnrollAnalyzerTest.cpp b/unittests/Analysis/UnrollAnalyzerTest.cpp index dfa42678ea8..002dd6cd630 100644 --- a/unittests/Analysis/UnrollAnalyzerTest.cpp +++ b/unittests/Analysis/UnrollAnalyzerTest.cpp @@ -10,6 +10,7 @@ #include "llvm/AsmParser/Parser.h" #include "llvm/IR/Dominators.h" #include "llvm/IR/LegacyPassManager.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/SourceMgr.h" #include "gtest/gtest.h" diff --git a/unittests/CodeGen/GlobalISel/GISelMITest.h b/unittests/CodeGen/GlobalISel/GISelMITest.h index 408fea7f1cb..0ba410236c3 100644 --- a/unittests/CodeGen/GlobalISel/GISelMITest.h +++ b/unittests/CodeGen/GlobalISel/GISelMITest.h @@ -21,6 +21,7 @@ #include "llvm/CodeGen/TargetInstrInfo.h" #include "llvm/CodeGen/TargetLowering.h" #include "llvm/CodeGen/TargetSubtargetInfo.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/FileCheck.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/TargetRegistry.h" diff --git a/unittests/CodeGen/TargetOptionsTest.cpp b/unittests/CodeGen/TargetOptionsTest.cpp index 6b4d3eda7ee..c7d1d28928d 100644 --- a/unittests/CodeGen/TargetOptionsTest.cpp +++ b/unittests/CodeGen/TargetOptionsTest.cpp @@ -2,6 +2,7 @@ #include "llvm/CodeGen/TargetPassConfig.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/LegacyPassManager.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Target/TargetMachine.h" diff --git a/unittests/IR/LegacyPassManagerTest.cpp b/unittests/IR/LegacyPassManagerTest.cpp index 1ce7fa0bd0e..aa02cbe96e0 100644 --- a/unittests/IR/LegacyPassManagerTest.cpp +++ b/unittests/IR/LegacyPassManagerTest.cpp @@ -26,7 +26,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/OptBisect.h" -#include "llvm/Pass.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" #include "gtest/gtest.h" diff --git a/unittests/MI/LiveIntervalTest.cpp b/unittests/MI/LiveIntervalTest.cpp index 782df239dea..835d3f91c66 100644 --- a/unittests/MI/LiveIntervalTest.cpp +++ b/unittests/MI/LiveIntervalTest.cpp @@ -5,6 +5,7 @@ #include "llvm/CodeGen/MachineModuleInfo.h" #include "llvm/CodeGen/TargetRegisterInfo.h" #include "llvm/IR/LegacyPassManager.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/TargetRegistry.h"