We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cfc497 commit 80717ddCopy full SHA for 80717dd
llvm/lib/CodeGen/MachineFunction.cpp
@@ -347,17 +347,15 @@ namespace llvm {
347
348
std::string getNodeLabel(const MachineBasicBlock *Node,
349
const MachineFunction *Graph) {
350
- if (isSimple () && Node->getBasicBlock() &&
351
- !Node->getBasicBlock()->getName().empty())
352
- return Node->getBasicBlock()->getNameStr() + ":";
353
-
354
std::string OutStr;
355
{
356
raw_string_ostream OSS(OutStr);
357
358
- if (isSimple())
359
- OSS << Node->getNumber() << ':';
360
- else
+
+ if (isSimple()) {
+ OSS << "BB#" << Node->getNumber();
+ if (const BasicBlock *BB = Node->getBasicBlock())
+ OSS << ": " << BB->getName();
+ } else
361
Node->print(OSS);
362
}
363
0 commit comments