mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Switch to getNameStr().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -568,8 +568,8 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
|
||||
if (ViewDAGCombine1 || ViewLegalizeTypesDAGs || ViewLegalizeDAGs ||
|
||||
ViewDAGCombine2 || ViewDAGCombineLT || ViewISelDAGs || ViewSchedDAGs ||
|
||||
ViewSUnitDAGs)
|
||||
BlockName = CurDAG->getMachineFunction().getFunction()->getName() + ":" +
|
||||
BB->getBasicBlock()->getName();
|
||||
BlockName = CurDAG->getMachineFunction().getFunction()->getNameStr() + ":" +
|
||||
BB->getBasicBlock()->getNameStr();
|
||||
|
||||
DOUT << "Initial selection DAG:\n";
|
||||
DEBUG(CurDAG->dump());
|
||||
|
@@ -138,8 +138,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
|
||||
void SelectionDAG::viewGraph(const std::string &Title) {
|
||||
// This code is only for debugging!
|
||||
#ifndef NDEBUG
|
||||
ViewGraph(this, "dag." + getMachineFunction().getFunction()->getName(), false,
|
||||
Title);
|
||||
ViewGraph(this, "dag." + getMachineFunction().getFunction()->getNameStr(),
|
||||
false, Title);
|
||||
#else
|
||||
cerr << "SelectionDAG::viewGraph is only available in debug builds on "
|
||||
<< "systems with Graphviz or gv!\n";
|
||||
|
Reference in New Issue
Block a user