[PATCH] D52322: Pass code-model through Module IR to LTO which will use is

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 20 15:32:34 PDT 2018


dexonsmith added inline comments.


================
Comment at: lib/IR/Module.cpp:522
+void Module::setCodeModel(CodeModel::Model CL) {
+  addModuleFlag(ModFlagBehavior::Error, "Code Model", CL);
+}
----------------
Is this the correct linking behaviour for code model?  I.e., is it illegal to link two object files together that have different code models?


Repository:
  rL LLVM

https://reviews.llvm.org/D52322





More information about the llvm-commits mailing list