[llvm-mc] The object form of the GNU triple should be the same as the string form.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 16 Jun 2015 09:57:38 +0000 (09:57 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 16 Jun 2015 09:57:38 +0000 (09:57 +0000)
commita8cc053519e623de9c4a19e6a1d07215eef5e705
treed5278948710054bc881ba080aa510e62e4461b1f
parent443838d8aa612880fdb6ec5c58843ab3a26638f9
[llvm-mc] The object form of the GNU triple should be the same as the string form.

Summary:
GetTarget() may modify TripleName without also updating TheTriple.
This can lead to situations where the MCObjectStreamer has a different triple
to the rest of LLVM.

This inconsistency caused sparc-little-endian.s to pass on Windows because most
of LLVM had sparcel-pc-win32 while MCObjectStreamer had "". I believe the same
kind of thing was also true of Darwin.

Reviewers: rengolin

Reviewed By: rengolin

Subscribers: llvm-commits, rengolin, rafael

Differential Revision: http://reviews.llvm.org/D10450

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239808 91177308-0d34-0410-b5e6-96231b3b80d8
test/MC/Sparc/sparc-little-endian.s
tools/llvm-mc/llvm-mc.cpp