From a3073722b20af291c3bf9e73d666fbb31cc9f88e Mon Sep 17 00:00:00 2001 From: Leeleo3x Date: Wed, 7 Feb 2018 21:01:13 -0800 Subject: [PATCH] Translate SIL to WALA-IR after canonical SIL is fully generated --- lib/FrontendTool/FrontendTool.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/FrontendTool/FrontendTool.cpp b/lib/FrontendTool/FrontendTool.cpp index d5aeaf390be16..048e44f5bbdbd 100644 --- a/lib/FrontendTool/FrontendTool.cpp +++ b/lib/FrontendTool/FrontendTool.cpp @@ -807,11 +807,6 @@ static bool performCompile(CompilerInstance &Instance, } } - // WALAWalker Integration - WALAWalker ww; - ww.analyzeSILModule(*SM); - // End WALAWalker Integration - if (observer) { observer->performedSILGeneration(*SM); } @@ -1004,6 +999,11 @@ static bool performCompile(CompilerInstance &Instance, assert(Action >= FrontendOptions::ActionType::EmitSIL && "All actions not requiring SILPasses must have been handled!"); + // WALAWalker Integration + WALAWalker ww; + ww.analyzeSILModule(*SM); + // End WALAWalker Integration + // We've been told to write canonical SIL, so write it now. if (Action == FrontendOptions::ActionType::EmitSIL) { return writeSIL(*SM, Instance.getMainModule(), opts.EmitVerboseSIL,