================
@@ -104,19 +109,41 @@ class LLVM_LIBRARY_VISIBILITY MipsTargetInfo : public 
TargetInfo {
     return false;
   }
 
+  void setOABITypes() {
+    // TODO:  OABI's long length can differ, find a way to do this and 
+    //        propagate to datalayout string.
+
+    unsigned LongLength = 32;
+    LongWidth = LongAlign = LongLength;
+    PointerWidth = PointerAlign = LongLength;
+  }
+
----------------
yingopq wrote:

Does we need add test in file `clang/test/Preprocessor/init-mips.c`?

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

Reply via email to