Support: split object format out of environment
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 6 Mar 2014 20:47:11 +0000 (20:47 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 6 Mar 2014 20:47:11 +0000 (20:47 +0000)
commit4eb048a6f1b9777d31d71684204deb1b39aa1795
tree956cabeaa8603c93307b2cff38b51e12fa34af78
parent5219b0f586e901b0aee7c927d97cf6d43f8fc49d
Support: split object format out of environment

This is a preliminary setup change to support a renaming of Windows target
triples.  Split the object file format information out of the environment into a
separate entity.  Unfortunately, file format was previously treated as an
environment with an unknown OS.  This is most obvious in the ARM subtarget where
the handling for macho on an arbitrary platform switches to AAPCS rather than
APCS (as per Apple's needs).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203160 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Triple.h
lib/MC/MCObjectFileInfo.cpp
lib/Support/Triple.cpp
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
tools/llvm-jitlistener/llvm-jitlistener.cpp
tools/llvm-objdump/llvm-objdump.cpp
unittests/ADT/TripleTest.cpp