From ca648c9787c7c82ddb9b1c13353df46d085fa366 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 5 Dec 2016 23:53:23 +0000 Subject: [PATCH] Add module definitions for string_view llvm-svn: 288733 --- libcxx/include/module.modulemap | 9 +++++++++ libcxx/include/string_view | 3 +++ 2 files changed, 12 insertions(+) diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap index 88e6590..af32dfc 100644 --- a/libcxx/include/module.modulemap +++ b/libcxx/include/module.modulemap @@ -393,6 +393,14 @@ module std [system] { module string { header "string" export initializer_list + export string_view + export __string + export * + } + module string_view { + header "string_view" + export initializer_list + export __string export * } module strstream { @@ -468,6 +476,7 @@ module std [system] { module __split_buffer { header "__split_buffer" export * } module __sso_allocator { header "__sso_allocator" export * } module __std_stream { header "__std_stream" export * } + module __string { header "__string" export * } module __tree { header "__tree" export * } module __tuple { header "__tuple" export * } module __undef_min_max { header "__undef_min_max" export * } diff --git a/libcxx/include/string_view b/libcxx/include/string_view index 60c0ad0..e66ac40 100644 --- a/libcxx/include/string_view +++ b/libcxx/include/string_view @@ -164,7 +164,10 @@ namespace std { #include <__config> #include <__string> +#include #include +#include +#include #include <__debug> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) -- 2.7.4