aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-03 20:31:37 +0000
committerChris Lattner <sabre@nondot.org>2005-08-03 20:31:37 +0000
commit4c64dd7977bc676399df0d5d2bf8016a3242780e (patch)
tree3ce92e9834ac4eec5c40887d3738232ee09ace80 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parentf1adce42b26c5986306341eb8a7cec0d16e190f1 (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.cpp2
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());
}