[llvm] [TargetParser] Add missing include to modulemap (PR #122768)

Cyndy Ishida via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 10:56:46 PST 2025


https://github.com/cyndyishida created https://github.com/llvm/llvm-project/pull/122768

Resolves warning when building with `LLVM_ENABLE_MODULES`

```
AArch64TargetParser.h:39:2: warning: missing submodule 'LLVM_Utils.TargetParser.AArch64FeatPriorities' [-Wincomplete-umbrella]
   39 | #include "llvm/TargetParser/AArch64FeatPriorities.inc"
      |  ^       ~~~~~~~
```

>From 85562d7f0dcd767f2ebc5e531cfb07a422fbf62f Mon Sep 17 00:00:00 2001
From: Cyndy Ishida <cyndy_ishida at apple.com>
Date: Mon, 13 Jan 2025 10:52:23 -0800
Subject: [PATCH] [TargetParser] Add missing include to modulemap

Resolves warning when building with `LLVM_ENABLE_MODULES`

```
AArch64TargetParser.h:39:2: warning: missing submodule 'LLVM_Utils.TargetParser.AArch64FeatPriorities' [-Wincomplete-umbrella]
   39 | #include "llvm/TargetParser/AArch64FeatPriorities.inc"
      |  ^       ~~~~~~~
```
---
 llvm/include/module.modulemap | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/include/module.modulemap b/llvm/include/module.modulemap
index 46277e128d9898..b3780234532414 100644
--- a/llvm/include/module.modulemap
+++ b/llvm/include/module.modulemap
@@ -348,6 +348,7 @@ extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
 module TargetParserGen {
   module AArch64TargetParserDef {
     textual header "llvm/TargetParser/AArch64CPUFeatures.inc"
+    textual header "llvm/TargetParser/AArch64FeatPriorities.inc"
     header "llvm/TargetParser/AArch64TargetParser.h"
     extern module LLVM_Extern_TargetParser_Gen "module.extern.modulemap"
     export *



More information about the llvm-commits mailing list