aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2009-11-30 12:38:13 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2009-11-30 12:38:13 +0000
commit90d334032a55963463b7abcb107147feb626cf62 (patch)
tree7c4724783f5f2b9a508d59e816fecd2a8a0d4e43 /llvm/lib/CodeGen/MachineFunction.cpp
parent8d6f6b74b14c1ea620a0f59e6bdd488f5f60052b (diff)
downloadllvm-90d334032a55963463b7abcb107147feb626cf62.zip
llvm-90d334032a55963463b7abcb107147feb626cf62.tar.gz
llvm-90d334032a55963463b7abcb107147feb626cf62.tar.bz2
Instantiate DefaultDOTGraphTraits
llvm-svn: 90133
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 81d1301..db7b949 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -359,6 +359,9 @@ void MachineFunction::print(raw_ostream &OS) const {
namespace llvm {
template<>
struct DOTGraphTraits<const MachineFunction*> : public DefaultDOTGraphTraits {
+
+ DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
+
static std::string getGraphName(const MachineFunction *F) {
return "CFG for '" + F->getFunction()->getNameStr() + "' function";
}