Sfoglia il codice sorgente

Fix call to OptTable::PrintHelp (#2475)

Ehsan 6 anni fa
parent
commit
8c0818731b

+ 1 - 1
tools/clang/lib/Driver/Driver.cpp

@@ -746,7 +746,7 @@ void Driver::PrintHelp(bool ShowHidden) const {
   if (!ShowHidden)
     ExcludedFlagsBitmask |= HelpHidden;
 
-  getOpts().PrintHelp(llvm::outs(), Name.c_str(), DriverTitle.c_str(),
+  getOpts().PrintHelp(llvm::outs(), Name.c_str(), DriverTitle.c_str(), "",
                       IncludedFlagsBitmask, ExcludedFlagsBitmask);
 }
 

+ 1 - 1
tools/clang/unittests/dxc_batch/dxc_batch.cpp

@@ -900,7 +900,7 @@ int __cdecl wmain(int argc, const wchar_t **argv_) {
     if (dxcOpts.ShowHelp) {
       std::string helpString;
       llvm::raw_string_ostream helpStream(helpString);
-      optionTable->PrintHelp(helpStream, "dxc_bach.exe", "HLSL Compiler", "");
+      optionTable->PrintHelp(helpStream, "dxc_batch.exe", "HLSL Compiler", "");
       helpStream << "multi-thread";
       helpStream.flush();
       dxc::WriteUtf8ToConsoleSizeT(helpString.data(), helpString.size());