forked from OSchip/llvm-project
Work around GCC's dislike of attributes on function definitions.
llvm-svn: 23896
This commit is contained in:
parent
c55b4cd773
commit
b92e9c57d5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue