[llvm] [llvm/llvm-project][Coroutines] Improve debugging and minor refactoring (PR #104642)

Tyler Nowicki via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 10:48:45 PDT 2024


================
@@ -52,6 +53,16 @@ extern cl::opt<bool> UseNewDbgInfoFormat;
 
 enum { SmallVectorThreshold = 32 };
 
+static std::string getBasicBlockLabel(const BasicBlock *BB) {
+  if (BB->hasName())
+    return BB->getName().str();
----------------
TylerNowicki wrote:

I prefer it to print

Entry (1122) :   %1182 = call ...

https://github.com/llvm/llvm-project/pull/104642


More information about the llvm-commits mailing list