[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 12 14:35:57 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) {
----------------
rnk wrote:
Triple contains a `std::string`, I wouldn't treat it as a cheap-to-copy value type:
https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/TargetParser/Triple.h#L321
https://github.com/llvm/llvm-project/pull/124834
More information about the cfe-commits
mailing list