aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-24 05:03:46 +0000
committerChris Lattner <sabre@nondot.org>2005-10-24 05:03:46 +0000
commita542b4c133de5da974632e9623ee4b426ebb3353 (patch)
treeeb0a063ef415dd825267c9a7201b3abdcd4e0b0d /include/llvm
parent02d608bd5f48ed6b65d3df5772d3d9e07dce1b11 (diff)
downloadexternal_llvm-a542b4c133de5da974632e9623ee4b426ebb3353.zip
external_llvm-a542b4c133de5da974632e9623ee4b426ebb3353.tar.gz
external_llvm-a542b4c133de5da974632e9623ee4b426ebb3353.tar.bz2
Move the END_WITH_NULL marker. Vladimir suggests that this works better with
GCC 4.1. I tried it with 4.0 and 3.3 and it seems fine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/CommandLine.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 73a16c4..993d93f 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -334,14 +334,9 @@ public:
}
};
-// Silly GCC doesn't allow attributes on a function definition.
template<class DataType>
-ValuesClass<DataType> values(const char *Arg, DataType Val, const char *Desc,
- ...) END_WITH_NULL;
-
-template<class DataType>
-ValuesClass<DataType> values(const char *Arg, DataType Val, const char *Desc,
- ...) {
+ValuesClass<DataType> END_WITH_NULL values(const char *Arg, DataType Val,
+ const char *Desc, ...) {
va_list ValueArgs;
va_start(ValueArgs, Desc);
ValuesClass<DataType> Vals(Arg, Val, Desc, ValueArgs);