[JITLink][ELF][x86-64] Use the right edge-naming function for debugging output.
authorLang Hames <lhames@gmail.com>
Sun, 5 Dec 2021 06:12:39 +0000 (17:12 +1100)
committerLang Hames <lhames@gmail.com>
Sun, 5 Dec 2021 06:12:39 +0000 (17:12 +1100)
Graph edges use the generic x86-64 edge set (the ELF specific edges are only
used during parsing).

llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp

index 3ea9ffee655469569092e90b03f8543869c30de3..072ecd5885db5de552c471b95f01ed12173f0027 100644 (file)
@@ -252,7 +252,7 @@ private:
     Edge GE(Kind, Offset, *GraphSymbol, Addend);
     LLVM_DEBUG({
       dbgs() << "    ";
-      printEdge(dbgs(), *BlockToFix, GE, getELFX86RelocationKindName(Kind));
+      printEdge(dbgs(), *BlockToFix, GE, x86_64::getEdgeKindName(Kind));
       dbgs() << "\n";
     });