diff --git a/tools/llvm-dwp/llvm-dwp.cpp b/tools/llvm-dwp/llvm-dwp.cpp index d3380b5b57a..176c470dd02 100644 --- a/tools/llvm-dwp/llvm-dwp.cpp +++ b/tools/llvm-dwp/llvm-dwp.cpp @@ -43,21 +43,21 @@ using namespace llvm; using namespace llvm::object; -using namespace cl; -OptionCategory DwpCategory("Specific Options"); -static list InputFiles(Positional, ZeroOrMore, - desc(""), cat(DwpCategory)); +cl::OptionCategory DwpCategory("Specific Options"); +static cl::list InputFiles(cl::Positional, cl::ZeroOrMore, + cl::desc(""), + cl::cat(DwpCategory)); -static list ExecFilenames( - "e", ZeroOrMore, - desc("Specify the executable/library files to get the list of *.dwo from"), - value_desc("filename"), cat(DwpCategory)); +static cl::list ExecFilenames( + "e", cl::ZeroOrMore, + cl::desc("Specify the executable/library files to get the list of *.dwo from"), + cl::value_desc("filename"), cl::cat(DwpCategory)); -static opt OutputFilename(Required, "o", - desc("Specify the output file."), - value_desc("filename"), - cat(DwpCategory)); +static cl::opt OutputFilename(cl::Required, "o", + cl::desc("Specify the output file."), + cl::value_desc("filename"), + cl::cat(DwpCategory)); static void writeStringsAndOffsets(MCStreamer &Out, DWPStringPool &Strings, MCSection *StrOffsetSection, @@ -644,7 +644,7 @@ static int error(const Twine &Error, const Twine &Context) { int main(int argc, char **argv) { InitLLVM X(argc, argv); - ParseCommandLineOptions(argc, argv, "merge split dwarf (.dwo) files"); + cl::ParseCommandLineOptions(argc, argv, "merge split dwarf (.dwo) files\n"); llvm::InitializeAllTargetInfos(); llvm::InitializeAllTargetMCs();