[PATCH] [mips] Make TTypeEncoding indirect to allow .eh_frame to be read-only.

Daniel Sanders daniel.sanders at imgtec.com
Thu May 21 13:41:05 PDT 2015


> Can/Should MIPS adjust the code model to match the ABI? E.g. use large for N64 and small or medium for N32/O32?


I'm not sure. Mips doesn't use CodeModel at the moment so we could potentially use it to mean N64. However, GCC for Mips doesn't have the -mcode-model option that's associated with CodeModel so I'm not sure we should.

I think I've found a way to get at the ABI though. It turns out that the Mips subclasses have access to the TargetMachine which can tell us the ABI. Failing that, I ought to be able to distinguish ELF32 (O32 and N32 ABI's) from ELF64 (N64 ABI) by splitting MipsTargetObject into two and selecting between them.


http://reviews.llvm.org/D9669

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list