[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:30:25 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 don't see how it can return a StringRef and an std::string... Anyway, as I said above this is just for dumping purposes so it doesn't need to be that efficient.

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


More information about the llvm-commits mailing list