[llvm] r247377 - [modules] Move ConvertUTF.h to a separate submodule that doesn't require C++.
Richard Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 20:14:00 PDT 2015
Author: rsmith
Date: Thu Sep 10 22:14:00 2015
New Revision: 247377
URL: http://llvm.org/viewvc/llvm-project?rev=247377&view=rev
Log:
[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).
Modified:
llvm/trunk/include/llvm/module.modulemap
Modified: llvm/trunk/include/llvm/module.modulemap
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/module.modulemap?rev=247377&r1=247376&r2=247377&view=diff
==============================================================================
--- llvm/trunk/include/llvm/module.modulemap (original)
+++ llvm/trunk/include/llvm/module.modulemap Thu Sep 10 22:14:00 2015
@@ -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 {
More information about the llvm-commits
mailing list