[AArch64] Don't implicitly enable global isel on Darwin if code-model==large.
authorLang Hames <lhames@gmail.com>
Wed, 18 Sep 2019 19:56:55 +0000 (19:56 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 18 Sep 2019 19:56:55 +0000 (19:56 +0000)
commit366ab0d086a457b085e3c9ba1c987d5499079cd6
treea82bab6000335f6987ab784c1632aa6031011bb7
parentdd0170ab24577f76a5c8c78b4f7e068ac29de40c
[AArch64] Don't implicitly enable global isel on Darwin if code-model==large.

Summary:
AArch64 GlobalISel doesn't support MachO's large code model, so this patch
adds a check for that combination before implicitly enabling it.

Reviewers: paquette

Subscribers: kristof.beyls, ributzka, llvm-commits

Tags: #llvm

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

llvm-svn: 372256
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/test/CodeGen/AArch64/arm64-code-model-large-darwin.ll [new file with mode: 0644]