File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 6161#include " llvm/Transforms/IPO/LowerTypeTests.h"
6262#include " llvm/Transforms/IPO/ThinLTOBitcodeWriter.h"
6363#include " llvm/Transforms/IPO/WelComeToLLVMMSVC.h"
64+ #include " llvm/Transforms/IPO/MSVCMacroRebuilding.h"
6465#include " llvm/Transforms/InstCombine/InstCombine.h"
6566#include " llvm/Transforms/Instrumentation.h"
6667#include " llvm/Transforms/Instrumentation/AddressSanitizer.h"
@@ -1105,6 +1106,9 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
11051106 // Bitcode auto generator pass(Pre)
11061107 MPM.addPassToFront (BitcodeAutoGeneratorPrePass (
11071108 CodeGenOpts.AutoGenerateBitcode , " BitcodeAutoGeneratorPre" ));
1109+
1110+ // MSVC macro rebuilding pass (this pass must be at the top)
1111+ MPM.addPassToFront (MSVCMacroRebuildingPass ());
11081112 }
11091113
11101114 // Post pass
You can’t perform that action at this time.
0 commit comments