mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Don't translate "-" to outs() manually; raw_ostream does that
automatically. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca91912a3b
commit
510cea0f90
@ -127,14 +127,11 @@ GetFileNameRoot(const std::string &InputFilename) {
|
|||||||
static formatted_raw_ostream *GetOutputStream(const char *TargetName,
|
static formatted_raw_ostream *GetOutputStream(const char *TargetName,
|
||||||
Triple::OSType OS,
|
Triple::OSType OS,
|
||||||
const char *ProgName) {
|
const char *ProgName) {
|
||||||
if (OutputFilename != "") {
|
if (!OutputFilename.empty()) {
|
||||||
if (OutputFilename == "-")
|
|
||||||
return new formatted_raw_ostream(outs(),
|
|
||||||
formatted_raw_ostream::PRESERVE_STREAM);
|
|
||||||
|
|
||||||
// Make sure that the Out file gets unlinked from the disk if we get a
|
// Make sure that the Out file gets unlinked from the disk if we get a
|
||||||
// SIGINT
|
// SIGINT
|
||||||
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
|
if (OutputFilename != "-")
|
||||||
|
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
|
||||||
|
|
||||||
std::string error;
|
std::string error;
|
||||||
raw_fd_ostream *FDOut =
|
raw_fd_ostream *FDOut =
|
||||||
|
Loading…
Reference in New Issue
Block a user