================
@@ -513,6 +513,10 @@ class Triple {
/// For example, "fooos1.2.3" would return "1.2.3".
LLVM_ABI StringRef getEnvironmentVersionString() const;
+ /// Get the default system encoding of the triple.
+ /// For example, "IBM-1047" for z/OS, "UTF-8" for others
+ LLVM_ABI StringRef getDefaultNarrowTextEncoding() const;
+
----------------
abhina-sree wrote:
We also use this in setting up the default value for fexec-charset in
Clang.cpp, on z/OS we want the default value to be IBM-1047 if nothing is
specified, on other platforms the default is UTF-8
https://github.com/llvm/llvm-project/pull/138895
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits