Perform explicit instantiations in the proper namespace, since Clang diagnoses this...
authorDouglas Gregor <dgregor@apple.com>
Wed, 25 Nov 2009 06:04:18 +0000 (06:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 25 Nov 2009 06:04:18 +0000 (06:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89846 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/CommandLine.cpp

index 12f76171ed80f88a3cde94087cad6ff45cdfc5b7..9cf9c894d410af55cf785a00feb0e6142dd059ab 100644 (file)
@@ -39,6 +39,7 @@ using namespace cl;
 //===----------------------------------------------------------------------===//
 // Template instantiations and anchors.
 //
+namespace llvm { namespace cl {
 TEMPLATE_INSTANTIATION(class basic_parser<bool>);
 TEMPLATE_INSTANTIATION(class basic_parser<boolOrDefault>);
 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<char>);
 TEMPLATE_INSTANTIATION(class opt<bool>);
+} } // end namespace llvm::cl
 
 void Option::anchor() {}
 void basic_parser_impl::anchor() {}