================
@@ -437,6 +437,7 @@ CodeGenModule::getLLVMABITargetInfo(llvm::abi::TypeBuilder 
&TB) {
     Opts.IsAndroidOrOHOS = T.isAndroid() || T.isOHOSFamily();
     Opts.IsWindowsArm64EC = T.isWindowsArm64EC();
     Opts.IsMicrosoftCXXABI = getTarget().getCXXABI().isMicrosoft();
+    Opts.IsBigEndian = T.getArch() == llvm::Triple::aarch64_be;
----------------
madhur13490 wrote:

Small thing: could we use !T.isLittleEndian() here instead of matching 
aarch64_be directly? That's closer to what Clang's lowering does (it asks the 
DataLayout), and it won't drift if another big-endian triple shows up.

https://github.com/llvm/llvm-project/pull/230631
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to