Instantiate DefaultDOTGraphTraits

llvm-svn: 90133
This commit is contained in:
Tobias Grosser
2009-11-30 12:38:13 +00:00
parent 8d6f6b74b1
commit 90d334032a
8 changed files with 67 additions and 26 deletions

View File

@@ -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";
}