[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

Pranav Kant via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 14:55:49 PST 2025


================
@@ -2950,12 +2950,11 @@ static void handleSectionAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
   }
 }
 
-static bool isValidCodeModelAttr(Sema &S, StringRef Str) {
-  if (S.Context.getTargetInfo().getTriple().isLoongArch()) {
+static bool isValidCodeModelAttr(llvm::Triple Triple, StringRef Str) {
----------------
pranavk wrote:

Right. This should be fixed.

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


More information about the cfe-commits mailing list