File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -284,9 +284,11 @@ class LLVM_ABI ScopedPrinter {
284284 startLine () << Label << " : " << (Value ? " Yes" : " No" ) << ' \n ' ;
285285 }
286286
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) {
288289 startLine () << Label << " : " ;
289- printVersionInternal (Version...);
290+ getOStream () << MajorVersion;
291+ ((getOStream () << ' .' << MinorVersions), ...);
290292 getOStream () << " \n " ;
291293 }
292294
@@ -454,12 +456,6 @@ class LLVM_ABI ScopedPrinter {
454456 virtual raw_ostream &getOStream () { return OS; }
455457
456458private:
457- template <typename T, typename ... TArgs>
458- void printVersionInternal (T Value, TArgs... Args) {
459- getOStream () << Value;
460- ((getOStream () << ' .' << Args), ...);
461- }
462-
463459 static bool flagName (const FlagEntry &LHS, const FlagEntry &RHS) {
464460 return LHS.Name < RHS.Name ;
465461 }
You can’t perform that action at this time.
0 commit comments