[llvm] [SystemZ][z/OS] Preserve filetag when rewriting files (PR #181733)

Abhina Sree via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 18 11:12:56 PST 2026


================
@@ -55,6 +55,16 @@ ErrorOr<__ccsid_t> getzOSFileTag(const Twine &FileName, const int FD = -1);
  */
 ErrorOr<bool> needzOSConversion(const Twine &FileName, const int FD = -1);
 
+/** Copy the tag attributes from \a source to \a destination.
+ *
+ * @param Source The name of the source file.
+ * @param Destination The file descriptor of the destination file.
+ * @returns errc::success if the tag attributes were copied successfully,
+ *          otherwise returns a specific error_code.
+ */
+std::error_code copyFileTagAttributes(const std::string &Source,
+                                      const int Destination);
----------------
abhina-sree wrote:

Sure, I've updated the name now, thanks!

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


More information about the llvm-commits mailing list