diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-03 20:31:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-03 20:31:37 +0000 |
commit | 4c64dd7977bc676399df0d5d2bf8016a3242780e (patch) | |
tree | 3ce92e9834ac4eec5c40887d3738232ee09ace80 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | f1adce42b26c5986306341eb8a7cec0d16e190f1 (diff) |
Fix PR611, codegen'ing SREM of FP operands to fmod or fmodf instead of
the sequence used for integer ops
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index a554b625f2..3b4cb287f8 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -124,6 +124,7 @@ void SelectionDAG::viewGraph() { if (system((LLVM_PATH_GRAPHVIZ " " + Filename).c_str())) { std::cerr << "Error viewing graph: 'Graphviz' not in path?\n"; } else { + system(("rm " + Filename).c_str()); return; } #endif @@ -143,4 +144,5 @@ void SelectionDAG::viewGraph() { #endif std::cerr << "SelectionDAG::viewGraph is only available in debug builds on " << "systems with Graphviz or gv!\n"; + system(("rm " + Filename).c_str()); } |