================ @@ -283,10 +284,24 @@ int main(int argc, char **argv) { if (Mode == TripletMode && Level.getNumOccurrences() > 0) errs() << "Warning: --level option is ignored in triplet mode\n"; - // Parse the input LLVM IR file + // Parse the input LLVM IR file or stdin SMDiagnostic Err; LLVMContext Context; - std::unique_ptr<Module> M = parseIRFile(InputFilename, Err, Context); + std::unique_ptr<Module> M; + + if (InputFilename == "-") { ---------------- svkeerthy wrote:
Thanks! It works indeed. https://github.com/llvm/llvm-project/pull/149213 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits