summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-25 06:04:18 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-25 06:04:18 +0000
commitb3587cfb3bd2de1675836eca8802661d32d6eb4d (patch)
tree38da3c073118e11afe2ba99efd761f6f9afd84ff /lib/Support
parent25798439da8c1a11512317dd38d6f0022a3d1f7d (diff)
downloadllvm-b3587cfb3bd2de1675836eca8802661d32d6eb4d.tar.gz
llvm-b3587cfb3bd2de1675836eca8802661d32d6eb4d.tar.bz2
llvm-b3587cfb3bd2de1675836eca8802661d32d6eb4d.tar.xz
Perform explicit instantiations in the proper namespace, since Clang diagnoses this ill-formity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/CommandLine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 12f76171ed..9cf9c894d4 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -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() {}