llvm-cat: Allow bitcode files to be created with no modules.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 13 Dec 2016 23:14:55 +0000 (23:14 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 13 Dec 2016 23:14:55 +0000 (23:14 +0000)
llvm-svn: 289610

llvm/tools/llvm-cat/llvm-cat.cpp

index 4397093..d884970 100644 (file)
@@ -28,7 +28,7 @@ static cl::opt<std::string> OutputFilename("o", cl::Required,
                                            cl::desc("Output filename"),
                                            cl::value_desc("filename"));
 
-static cl::list<std::string> InputFilenames(cl::Positional, cl::OneOrMore,
+static cl::list<std::string> InputFilenames(cl::Positional, cl::ZeroOrMore,
                                             cl::desc("<input  files>"));
 
 int main(int argc, char **argv) {