[PATCH] [Mips][AsmBackend] Use MCTargetOptions to decide between elf32/64 based on ABI

Vladimir Medic Vladimir.Medic at imgtec.com
Tue Feb 24 01:53:52 PST 2015


Hi dsanders, echristo,

This patch represents Mips specific part of D6476. It uses MCTargetOptions parameter passed to AsmBackend and base on ABI value initiates ELFObjectWriter to create ELF32/64 output. Consequently, it changes the way target triple is decided based on ELF header fields.

http://reviews.llvm.org/D7849

Files:
  include/llvm/Object/ELFObjectFile.h
  lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
  lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h
  lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
  lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.h
  test/MC/Mips/cpsetup.s
  test/MC/Mips/mips64r6/relocations.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7849.20578.patch
Type: text/x-patch
Size: 9875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150224/1b614f18/attachment.bin>


More information about the llvm-commits mailing list