[llvm-commits] [llvm] r89846 - /llvm/trunk/lib/Support/CommandLine.cpp
Douglas Gregor
dgregor at apple.com
Tue Nov 24 22:04:19 PST 2009
Author: dgregor
Date: Wed Nov 25 00:04:18 2009
New Revision: 89846
URL: http://llvm.org/viewvc/llvm-project?rev=89846&view=rev
Log:
Perform explicit instantiations in the proper namespace, since Clang diagnoses this ill-formity.
Modified:
llvm/trunk/lib/Support/CommandLine.cpp
Modified: llvm/trunk/lib/Support/CommandLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CommandLine.cpp?rev=89846&r1=89845&r2=89846&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CommandLine.cpp (original)
+++ llvm/trunk/lib/Support/CommandLine.cpp Wed Nov 25 00:04:18 2009
@@ -39,6 +39,7 @@
//===----------------------------------------------------------------------===//
// 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<std::string>);
TEMPLATE_INSTANTIATION(class opt<char>);
TEMPLATE_INSTANTIATION(class opt<bool>);
+} } // end namespace llvm::cl
void Option::anchor() {}
void basic_parser_impl::anchor() {}
More information about the llvm-commits
mailing list