summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
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
commit7baad7365a979a64456b180d66a754f7cf4ef22e (patch)
treec2279af4209d23404e1401f28e7a1d7105b24d6a /llvm/lib/Support/CommandLine.cpp
parent0681a35f5f8fb693d0af2ef8e6bbfc9efa4ae9f1 (diff)
downloadbcm5719-llvm-7baad7365a979a64456b180d66a754f7cf4ef22e.tar.gz
bcm5719-llvm-7baad7365a979a64456b180d66a754f7cf4ef22e.zip
Perform explicit instantiations in the proper namespace, since Clang diagnoses this ill-formity.
llvm-svn: 89846
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 12f76171ed8..9cf9c894d41 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/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() {}
OpenPOWER on IntegriCloud