]> granicus.if.org Git - clang/commit
Add necessary support for storing code-model to module IR.
authorCaroline Tice <cmtice@google.com>
Fri, 21 Sep 2018 18:34:59 +0000 (18:34 +0000)
committerCaroline Tice <cmtice@google.com>
Fri, 21 Sep 2018 18:34:59 +0000 (18:34 +0000)
commit376881c98e8cd750a0821948af1712a022acf14b
treed36229dfc6bd18553d9d0e0a47e340808f79afd3
parent057446eb82b598d2737d23c70ed91a33cf9012a0
Add necessary support for storing code-model to module IR.

Currently the code-model does not get saved in the module IR, so if a
code model is specified when compiling with LTO, it gets lost and is
not propagated properly to LTO. This patch does what is necessary in
the front end to pass the code-model to the module, so that the back
end can store it in the Module .

Differential Revision: https://reviews.llvm.org/D52323

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342758 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/codemodels.c [new file with mode: 0644]