aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>2025-06-11 11:22:40 -0400
committerAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>2025-06-11 11:29:04 -0400
commit9ff4728dacdbec859cd7c733b54f46c82e5afab2 (patch)
tree44aaee96caba918cb8485c9cce324d2766ca6546 /clang/lib/Frontend/InitPreprocessor.cpp
parent718c50e6fe6b82e0e1251422e75759b654b38b5a (diff)
downloadllvm-users/abhina/fexec_charset.zip
llvm-users/abhina/fexec_charset.tar.gz
llvm-users/abhina/fexec_charset.tar.bz2
replace StringMap with pointerusers/abhina/fexec_charset
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 39b684a..54a0348 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -1060,11 +1060,11 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
// Macros to help identify the narrow and wide character sets. This is set
// to fexec-charset. If fexec-charset is not specified, the default is the
// system charset.
- if (!LangOpts.ExecCharset.empty())
- Builder.defineMacro("__clang_literal_encoding__", LangOpts.ExecCharset);
+ if (!LangOpts.ExecEncoding.empty())
+ Builder.defineMacro("__clang_literal_encoding__", LangOpts.ExecEncoding);
else
Builder.defineMacro("__clang_literal_encoding__",
- TI.getTriple().getSystemCharset());
+ TI.getTriple().getDefaultTextEncoding());
if (TI.getTypeWidth(TI.getWCharType()) >= 32) {
// FIXME: 32-bit wchar_t signals UTF-32. This may change
// if -fwide-exec-charset= is ever supported.