[llvm] [AIX] Support per global code model. (PR #79202)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 12:51:58 PST 2024


================
@@ -493,25 +493,16 @@ static CodeModel::Model getCodeModel(const PPCSubtarget &S,
   return ModuleModel;
 }
 
-static void checkPerGlobalCodeModel(const GlobalValue *GV, MCSymbol *Sym) {
-  // ELF per global code model not supported yet.
-  if (!isa<MCSymbolXCOFF>(Sym))
-    return;
-
+static std::optional<CodeModel::Model>
+hasPerGlobalCodeModel(const GlobalValue *GV) {
----------------
diggerlin wrote:

nit , the functionality looks like to get the  CodeModel::Model , change the function name to `getPerGlobalCodeModel`

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


More information about the llvm-commits mailing list