mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
fix build against LLVM master: clEnumValEnd removed
This commit is contained in:
parent
4e5c9616e3
commit
0b55bd21d2
5 changed files with 66 additions and 57 deletions
|
@ -206,4 +206,16 @@ public:
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
#if LDC_LLVM_VER >= 400
|
||||
#define clEnumValues llvm::cl::values
|
||||
#else
|
||||
template <typename DataType, typename... OptsTy>
|
||||
llvm::cl::ValuesClass<DataType> clEnumValues(const char *Arg, DataType Val,
|
||||
const char *Desc,
|
||||
OptsTy... Options) {
|
||||
return llvm::cl::values(Arg, Val, Desc, Options..., clEnumValEnd);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue