[PATCH] D140795: [Flang] Add user option -funderscoring/-fnounderscoring to control trailing underscore added to external names

Valentin Clement via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 00:16:55 PST 2023


clementval added a comment.

Small suggestion



================
Comment at: flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp:41-45
+  std::string newName{result.second.name};
+  if (appendUnderscore)
+    newName = newName + "_";
+
+  return newName;
----------------
To avoid new copy


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140795/new/

https://reviews.llvm.org/D140795



More information about the cfe-commits mailing list