File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -110,20 +110,16 @@ static void showStats() {
110110
111111static void emitCommandLine (ostream *out) {
112112#ifdef __linux__
113- ifstream cmd_args;
114- cmd_args.open (" /proc/self/cmdline" );
113+ ifstream cmd_args (" /proc/self/cmdline" );
115114 if (!cmd_args.is_open ()) {
116- cerr << " Alive2: Couldn't open /proc/self/cmdline" << endl;
117- exit (1 );
115+ return ;
118116 }
119- *out << " Command line: " ;
117+ *out << " Command line:" ;
120118 std::string arg;
121119 while (std::getline (cmd_args, arg, ' \0 ' ))
122- *out << " '" << arg << " ' " ;
123- #else
124- *out << " Command line: not available on this platform" ;
125- #endif
120+ *out << " '" << arg << " '" ;
126121 *out << " \n\n " ;
122+ #endif
127123}
128124
129125struct TVLegacyPass final : public llvm::ModulePass {
You can’t perform that action at this time.
0 commit comments