mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user