diff options
Diffstat (limited to 'llvm/tools/llvmc2/CompilationGraph.cpp')
-rw-r--r-- | llvm/tools/llvmc2/CompilationGraph.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvmc2/CompilationGraph.cpp b/llvm/tools/llvmc2/CompilationGraph.cpp index 9cdcac38457..acf391a2906 100644 --- a/llvm/tools/llvmc2/CompilationGraph.cpp +++ b/llvm/tools/llvmc2/CompilationGraph.cpp @@ -151,6 +151,10 @@ namespace { Out.appendComponent(BaseName); } Out.appendSuffix(Suffix); + // NOTE: makeUnique always *creates* a unique temporary file, + // which is good, since there will be no races. However, some + // tools do not like it when the output file already exists, so + // they have to be placated with -f or something like that. Out.makeUnique(true, NULL); return Out; } |