[llvm] f1b6905 - [build][modules] Fix ObjCARCUtil.h modularization
Dave Lee via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 8 15:51:42 PST 2021
Author: Dave Lee
Date: 2021-03-08T15:51:27-08:00
New Revision: f1b690598eeca0568e39134f28e0a59c1c1f3598
URL: https://github.com/llvm/llvm-project/commit/f1b690598eeca0568e39134f28e0a59c1c1f3598
DIFF: https://github.com/llvm/llvm-project/commit/f1b690598eeca0568e39134f28e0a59c1c1f3598.diff
LOG: [build][modules] Fix ObjCARCUtil.h modularization
This change was introduced by this fix:
a2a55def354df2cd4de0b1cbd6b2795a07e6905a.
This makes a submodule for ObjCARCUtil.h, because leaving it in
LLVM_intrinsic_gen causes a dependency cycle between LLVM_IR and
LLVM_intrinsic_gen.
Added:
Modified:
llvm/include/llvm/module.modulemap
Removed:
################################################################################
diff --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap
index 848fb266374e..3ac734e88b36 100644
--- a/llvm/include/llvm/module.modulemap
+++ b/llvm/include/llvm/module.modulemap
@@ -265,6 +265,8 @@ module LLVM_intrinsic_gen {
module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
module IR_Function { header "IR/Function.h" export * }
module IR_InstrTypes { header "IR/InstrTypes.h" export * }
+ // Depends on only IR_InstrTypes. Creates a cycle if left in LLVM_intrinsic_gen.
+ module IR_ObjCARCUtil { header "IR/ObjCARCUtil.h" export * }
module IR_Instructions { header "IR/Instructions.h" export * }
More information about the llvm-commits
mailing list