This patch makes medium code model the default for 64-bit PowerPC ELF.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 27 Nov 2012 23:36:26 +0000 (23:36 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 27 Nov 2012 23:36:26 +0000 (23:36 +0000)
commitdaa65f5e08e19b1fac5f476cef45223b1b4e5a8e
treefb291d18d2fe9bf5cb222be120b6f9040ba8dabd
parent51434aa375f10319db7f2190ad189073e17e3efb
This patch makes medium code model the default for 64-bit PowerPC ELF.

When the CodeGenInfo is to be created for the PPC64 target machine,
a default code-model selection is converted to CodeModel::Medium
provided we are not targeting the Darwin OS.  Defaults for Darwin
are unaffected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
test/CodeGen/PowerPC/mcm-default.ll [new file with mode: 0644]