summaryrefslogtreecommitdiff
path: root/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-13 14:33:39 +0000
committerChris Lattner <sabre@nondot.org>2002-09-13 14:33:39 +0000
commit4042332d4a8ba8e4d2b3a6d87a3af81fc73a0f98 (patch)
tree8aaf9197a5de492d3f3e434c5d0e80bf0a6385e1 /include/llvm/Support/CommandLine.h
parent59afbf3999ebcbb5cc2bb4c8592f550b70fb0a3c (diff)
downloadllvm-4042332d4a8ba8e4d2b3a6d87a3af81fc73a0f98.tar.gz
llvm-4042332d4a8ba8e4d2b3a6d87a3af81fc73a0f98.tar.bz2
llvm-4042332d4a8ba8e4d2b3a6d87a3af81fc73a0f98.tar.xz
Checkin patch written by Casey Carter, enabling support for the redhat GCC 2.96
compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 8ea8f8211a..23a1285543 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -562,6 +562,10 @@ template<unsigned n> struct applicator<char[n]> {
template<class Opt>
static void opt(const char *Str, Opt &O) { O.setArgStr(Str); }
};
+template<unsigned n> struct applicator<const char[n]> {
+ template<class Opt>
+ static void opt(const char *Str, Opt &O) { O.setArgStr(Str); }
+};
template<> struct applicator<const char*> {
template<class Opt>
static void opt(const char *Str, Opt &O) { O.setArgStr(Str); }