Skip to content

Commit 10af248

Browse files
authored
Update BackendUtil.cpp
1 parent 349a1e8 commit 10af248

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
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

0 commit comments

Comments
 (0)