projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modernize raw_fd_ostream's constructor a bit.
[oota-llvm.git]
/
examples
/
BrainF
/
BrainFDriver.cpp
diff --git
a/examples/BrainF/BrainFDriver.cpp
b/examples/BrainF/BrainFDriver.cpp
index 9b1f0d3f118172553ecf7d7b6c1449296a96158c..5820f1d0d09e162cacec5a7ea8c2e1e0d31409b9 100644
(file)
--- a/
examples/BrainF/BrainFDriver.cpp
+++ b/
examples/BrainF/BrainFDriver.cpp
@@
-107,9
+107,8
@@
int main(int argc, char **argv) {
OutputFilename = base+".bc";
}
if (OutputFilename != "-") {
OutputFilename = base+".bc";
}
if (OutputFilename != "-") {
- std::string ErrInfo;
- out = new raw_fd_ostream(OutputFilename.c_str(), ErrInfo,
- sys::fs::F_None);
+ std::error_code EC;
+ out = new raw_fd_ostream(OutputFilename, EC, sys::fs::F_None);
}
}
}
}