projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a6ee29
)
Don't register stdout to be deleted on a signal.
author
Dan Gohman
<gohman@apple.com>
Wed, 18 Aug 2010 17:21:42 +0000
(17:21 +0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 18 Aug 2010 17:21:42 +0000
(17:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111368
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-extract/llvm-extract.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-extract/llvm-extract.cpp
b/tools/llvm-extract/llvm-extract.cpp
index e6b5b8465d7be5f6ca0d6533bc74b01cb3122b59..440d1bdcb500500e03cafb90ccf11f100204780d 100644
(file)
--- a/
tools/llvm-extract/llvm-extract.cpp
+++ b/
tools/llvm-extract/llvm-extract.cpp
@@
-118,7
+118,8
@@
int main(int argc, char **argv) {
// Make sure that the Output file gets unlinked from the disk if we get a
// SIGINT
- sys::RemoveFileOnSignal(sys::Path(OutputFilename));
+ if (OutputFilename != "-")
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
std::string ErrorInfo;
raw_fd_ostream Out(OutputFilename.c_str(), ErrorInfo,