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

llvm-svn: 23896
This commit is contained in:
Jeff Cohen 2005-10-23 15:22:50 +00:00
parent c55b4cd773
commit b92e9c57d5
1 changed files with 6 additions and 1 deletions

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