diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2009-11-30 12:38:13 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2009-11-30 12:38:13 +0000 |
commit | 90d334032a55963463b7abcb107147feb626cf62 (patch) | |
tree | 7c4724783f5f2b9a508d59e816fecd2a8a0d4e43 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 8d6f6b74b14c1ea620a0f59e6bdd488f5f60052b (diff) | |
download | llvm-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.cpp | 3 |
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"; } |