]> granicus.if.org Git - clang/commit
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and relate...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 15 Sep 2015 14:08:28 +0000 (14:08 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 15 Sep 2015 14:08:28 +0000 (14:08 +0000)
commita6cfb95d80449e52f806fd9936d26971aba75e98
tree9934b61f7184fe7a6bc24c81faa88b3f2234c860
parent04be86844a08ca6283f40501a9498860fd518cb7
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.

Summary:
This is the first patch in the series to migrate Triple's (which are ambiguous)
to TargetTuple's (which aren't).

For the moment, TargetTuple simply passes all requests to the Triple object it
holds. Once it has replaced Triple, it will start to implement the interface in
a more suitable way.

This change makes some changes to the public C++ API. In particular,
InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer()
now take TargetTuples instead of Triples. The other public C++ API's have
been left as-is for the moment to reduce patch size.

This commit also contains a trivial patch to clang to account for the C++ API
change. Thanks go to Pavel Labath for fixing LLDB for me.

Reviewers: rengolin

Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247692 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmtAsm.cpp
tools/driver/cc1as_main.cpp