File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -284,9 +284,11 @@ class LLVM_ABI ScopedPrinter {
284
284
startLine () << Label << " : " << (Value ? " Yes" : " No" ) << ' \n ' ;
285
285
}
286
286
287
- template <typename ... T> void printVersion (StringRef Label, T... Version) {
287
+ template <typename T, typename ... TArgs>
288
+ void printVersion (StringRef Label, T MajorVersion, TArgs... MinorVersions) {
288
289
startLine () << Label << " : " ;
289
- printVersionInternal (Version...);
290
+ getOStream () << MajorVersion;
291
+ ((getOStream () << ' .' << MinorVersions), ...);
290
292
getOStream () << " \n " ;
291
293
}
292
294
@@ -454,16 +456,6 @@ class LLVM_ABI ScopedPrinter {
454
456
virtual raw_ostream &getOStream () { return OS; }
455
457
456
458
private:
457
- template <typename T> void printVersionInternal (T Value) {
458
- getOStream () << Value;
459
- }
460
-
461
- template <typename S, typename T, typename ... TArgs>
462
- void printVersionInternal (S Value, T Value2, TArgs... Args) {
463
- getOStream () << Value << " ." ;
464
- printVersionInternal (Value2, Args...);
465
- }
466
-
467
459
static bool flagName (const FlagEntry &LHS, const FlagEntry &RHS) {
468
460
return LHS.Name < RHS.Name ;
469
461
}
You can’t perform that action at this time.
0 commit comments