From: Dehao Chen Date: Mon, 14 Aug 2017 23:25:21 +0000 (+0000) Subject: Add missing dependency in ICP. (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6ef89317376892e8ead6ea6d9a18700da886567;p=llvm Add missing dependency in ICP. (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310896 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp b/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp index 47e21bde12b..39a818afff2 100644 --- a/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp +++ b/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp @@ -142,10 +142,15 @@ private: } // end anonymous namespace char PGOIndirectCallPromotionLegacyPass::ID = 0; -INITIALIZE_PASS(PGOIndirectCallPromotionLegacyPass, "pgo-icall-prom", - "Use PGO instrumentation profile to promote indirect calls to " - "direct calls.", - false, false) +INITIALIZE_PASS_BEGIN(PGOIndirectCallPromotionLegacyPass, "pgo-icall-prom", + "Use PGO instrumentation profile to promote indirect " + "calls to direct calls.", + false, false) +INITIALIZE_PASS_DEPENDENCY(ProfileSummaryInfoWrapperPass) +INITIALIZE_PASS_END(PGOIndirectCallPromotionLegacyPass, "pgo-icall-prom", + "Use PGO instrumentation profile to promote indirect " + "calls to direct calls.", + false, false) ModulePass *llvm::createPGOIndirectCallPromotionLegacyPass(bool InLTO, bool SamplePGO) {