Perform explicit instantiations in the proper namespace, since Clang diagnoses this ill-formity.

llvm-svn: 89846
This commit is contained in:
Douglas Gregor 2009-11-25 06:04:18 +00:00
parent 4b197b8908
commit 2cb3662a53

View File

@ -39,6 +39,7 @@ using namespace cl;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Template instantiations and anchors. // Template instantiations and anchors.
// //
namespace llvm { namespace cl {
TEMPLATE_INSTANTIATION(class basic_parser<bool>); TEMPLATE_INSTANTIATION(class basic_parser<bool>);
TEMPLATE_INSTANTIATION(class basic_parser<boolOrDefault>); TEMPLATE_INSTANTIATION(class basic_parser<boolOrDefault>);
TEMPLATE_INSTANTIATION(class basic_parser<int>); TEMPLATE_INSTANTIATION(class basic_parser<int>);
@ -53,6 +54,7 @@ TEMPLATE_INSTANTIATION(class opt<int>);
TEMPLATE_INSTANTIATION(class opt<std::string>); TEMPLATE_INSTANTIATION(class opt<std::string>);
TEMPLATE_INSTANTIATION(class opt<char>); TEMPLATE_INSTANTIATION(class opt<char>);
TEMPLATE_INSTANTIATION(class opt<bool>); TEMPLATE_INSTANTIATION(class opt<bool>);
} } // end namespace llvm::cl
void Option::anchor() {} void Option::anchor() {}
void basic_parser_impl::anchor() {} void basic_parser_impl::anchor() {}