From a6f58ad82d6a8728096bf4690fa4b9e4f99241ae Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 11 Sep 2015 03:14:00 +0000 Subject: [PATCH] [modules] Move ConvertUTF.h to a separate submodule that doesn't require C++. The former setup once resulted in us ignoring the module for C compilations, but Clang now errors on this if the header is included from C code (which it is). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247377 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/module.modulemap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/llvm/module.modulemap b/include/llvm/module.modulemap index 533760f7868..6d6fcbe2296 100644 --- a/include/llvm/module.modulemap +++ b/include/llvm/module.modulemap @@ -211,6 +211,12 @@ module LLVM_Utils { textual header "Support/ELFRelocs/SystemZ.def" textual header "Support/ELFRelocs/x86_64.def" } + + // This part of the module is usable from both C and C++ code. + module ConvertUTF { + header "Support/ConvertUTF.h" + export * + } } module LLVM_CodeGen_MachineValueType { -- 2.34.1