diff options
Diffstat (limited to 'include/llvm/Support')
| -rw-r--r-- | include/llvm/Support/CommandLine.h | 7 | ||||
| -rw-r--r-- | include/llvm/Support/TargetRegistry.h | 2 | 
2 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 771b0a8c26a9..71d2f0293083 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -66,15 +66,12 @@ bool ParseCommandLineOptions(int argc, const char *const *argv,  void ParseEnvironmentOptions(const char *progName, const char *envvar,                               const char *Overview = ""); -// Function pointer type for printing version information. -using VersionPrinterTy = std::function<void(raw_ostream &)>; -  ///===---------------------------------------------------------------------===//  /// SetVersionPrinter - Override the default (LLVM specific) version printer  ///                     used to print out the version when --version is given  ///                     on the command line. This allows other systems using the  ///                     CommandLine utilities to print their own version string. -void SetVersionPrinter(VersionPrinterTy func); +void SetVersionPrinter(void (*func)());  ///===---------------------------------------------------------------------===//  /// AddExtraVersionPrinter - Add an extra printer to use in addition to the @@ -83,7 +80,7 @@ void SetVersionPrinter(VersionPrinterTy func);  ///                          which will be called after the basic LLVM version  ///                          printing is complete. Each can then add additional  ///                          information specific to the tool. -void AddExtraVersionPrinter(VersionPrinterTy func); +void AddExtraVersionPrinter(void (*func)());  // PrintOptionValues - Print option values.  // With -print-options print the difference between option values and defaults. diff --git a/include/llvm/Support/TargetRegistry.h b/include/llvm/Support/TargetRegistry.h index 90d6c084ee95..8454b27b6f04 100644 --- a/include/llvm/Support/TargetRegistry.h +++ b/include/llvm/Support/TargetRegistry.h @@ -599,7 +599,7 @@ struct TargetRegistry {    /// printRegisteredTargetsForVersion - Print the registered targets    /// appropriately for inclusion in a tool's version output. -  static void printRegisteredTargetsForVersion(raw_ostream &OS); +  static void printRegisteredTargetsForVersion();    /// @name Registry Access    /// @{  | 
