summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-09-11 03:14:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-09-11 03:14:00 +0000
commit33b4675b4419da760df111a3eea41af1de36384f (patch)
tree8cfc9d8971aa76710daec1426aff2820803a6388
parentc416e4182ae8ecfac02fc91e2eb2efb118915415 (diff)
downloadbcm5719-llvm-33b4675b4419da760df111a3eea41af1de36384f.tar.gz
bcm5719-llvm-33b4675b4419da760df111a3eea41af1de36384f.zip
[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). llvm-svn: 247377
-rw-r--r--llvm/include/llvm/module.modulemap6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap
index 533760f7868..6d6fcbe2296 100644
--- a/llvm/include/llvm/module.modulemap
+++ b/llvm/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 {
OpenPOWER on IntegriCloud