diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 1d499de..73a16c4 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -334,9 +334,14 @@ 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 { + ...) END_WITH_NULL; + +template<class DataType> +ValuesClass<DataType> values(const char *Arg, DataType Val, const char *Desc, + ...) { va_list ValueArgs; va_start(ValueArgs, Desc); ValuesClass<DataType> Vals(Arg, Val, Desc, ValueArgs); |