Remove ShortNames from getNodeLabel in DOTGraphTraits

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tobias Grosser
2009-11-30 12:38:47 +00:00
parent a10d598602
commit 56f4ef3232
8 changed files with 59 additions and 56 deletions

View File

@ -366,10 +366,9 @@ namespace llvm {
return "CFG for '" + F->getFunction()->getNameStr() + "' function";
}
static std::string getNodeLabel(const MachineBasicBlock *Node,
const MachineFunction *Graph,
bool ShortNames) {
if (ShortNames && Node->getBasicBlock() &&
std::string getNodeLabel(const MachineBasicBlock *Node,
const MachineFunction *Graph) {
if (isSimple () && Node->getBasicBlock() &&
!Node->getBasicBlock()->getName().empty())
return Node->getBasicBlock()->getNameStr() + ":";
@ -377,7 +376,7 @@ namespace llvm {
{
raw_string_ostream OSS(OutStr);
if (ShortNames)
if (isSimple())
OSS << Node->getNumber() << ':';
else
Node->print(OSS);