aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorDouglas Gregor <doug.gregor@gmail.com>2009-11-25 06:04:18 +0000
committerDouglas Gregor <doug.gregor@gmail.com>2009-11-25 06:04:18 +0000
commit58f610eff4cf913a5e6026283fe899bd6c6c1f33 (patch)
tree38da3c073118e11afe2ba99efd761f6f9afd84ff /lib/Support
parentf4a14e453252f061df2bf35dbe5d216161b378cb (diff)
downloadexternal_llvm-58f610eff4cf913a5e6026283fe899bd6c6c1f33.zip
external_llvm-58f610eff4cf913a5e6026283fe899bd6c6c1f33.tar.gz
external_llvm-58f610eff4cf913a5e6026283fe899bd6c6c1f33.tar.bz2
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 12f7617..9cf9c89 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() {}