File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 61
61
#include " llvm/TargetParser/SubtargetFeature.h"
62
62
#include " llvm/TargetParser/Triple.h"
63
63
#include " llvm/Transforms/HipStdPar/HipStdPar.h"
64
+ #include " llvm/Transforms/IPO/Annotation2Metadata.h"
64
65
#include " llvm/Transforms/IPO/EmbedBitcodePass.h"
65
66
#include " llvm/Transforms/IPO/LowerTypeTests.h"
66
67
#include " llvm/Transforms/IPO/ThinLTOBitcodeWriter.h"
@@ -1096,6 +1097,9 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
1096
1097
MPM.addPassToFront (BitcodeAutoGeneratorPrePass (
1097
1098
CodeGenOpts.AutoGenerateBitcode , " BitcodeAutoGeneratorPre" ));
1098
1099
1100
+ // Convert @llvm.global.annotations to !annotation metadata.
1101
+ MPM.addPassToFront (Annotation2MetadataPass ());
1102
+
1099
1103
// MSVC macro rebuilding pass (this pass must be at the top)
1100
1104
MPM.addPassToFront (MSVCMacroRebuildingPass ());
1101
1105
}
You can’t perform that action at this time.
0 commit comments