[PATCH] D31624: [AArch64][Fuchsia] Allow -mcmodel=kernel for --target=aarch64-fuchsia

Roland McGrath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 14:52:11 PDT 2017


mcgrathr added a comment.

The intent is no changes whatosever except for using TPIDR_EL1.
All the other changes are just to accept CodeModel::Kernel and treat it exactly like CodeModel::Small.  Do you see something where other behavior changes under -code-model=kernel?
Since before this change, -code-model=kernel was disallowed altogether and now it's allowed only for aarch64-fuchsia where it is the same as =small in almost all regards, the "aka small" comment seems correct to me.

I will make the change to consolidate the logic into a helper function.


Repository:
  rL LLVM

https://reviews.llvm.org/D31624





More information about the llvm-commits mailing list