Work around GCC's dislike of attributes on function definitions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2005-10-23 15:22:50 +00:00
parent fec735fb84
commit cc94b5178f

View File

@ -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);