Checkin patch written by Casey Carter, enabling support for the redhat GCC 2.96
authorChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 14:33:39 +0000 (14:33 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 14:33:39 +0000 (14:33 +0000)
compiler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3697 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/CommandLine.h
include/llvm/Support/CommandLine.h

index 8ea8f8211af60039058085afbcd00c237b874fb6..23a12855439ec6fcb4e6791e93f28df04edfe4b6 100644 (file)
@@ -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); }
index 8ea8f8211af60039058085afbcd00c237b874fb6..23a12855439ec6fcb4e6791e93f28df04edfe4b6 100644 (file)
@@ -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); }