Instantiate DefaultDOTGraphTraits
llvm-svn: 90133
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user