Skip to content

Commit d99818a

Browse files
committed
append instead of overwrite
1 parent 7211734 commit d99818a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

passi.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class PassTimer : public Timer {
155155
ofstream outf;
156156
if (outputFile != "") {
157157
errs() << "OPENING OUTPUTFILE: " << outputFile << endl;
158-
outf.open(outputFile);
158+
outf.open(outputFile, std::ios_base::app);
159159
buf = outf.rdbuf();
160160
} else
161161
buf = std::cerr.rdbuf();
@@ -167,8 +167,10 @@ class PassTimer : public Timer {
167167
}
168168
expiredTimers[i]->print(&out);
169169
}
170-
if (outputFile != "")
170+
if (outputFile != "") {
171+
out << endl;
171172
outf.close();
173+
}
172174
}
173175
static std::vector<const PassTimer*> expiredTimers;
174176

0 commit comments

Comments
 (0)