Remove last Host usage from ArchSpec
authorPavel Labath <labath@google.com>
Mon, 13 Nov 2017 15:57:20 +0000 (15:57 +0000)
committerPavel Labath <labath@google.com>
Mon, 13 Nov 2017 15:57:20 +0000 (15:57 +0000)
commit4ebb64b95fe22ec7916afdf7445bb4256ccfccf1
tree3036fb6104b1ee892f35dfcf5e850de11b195ca1
parent44156a0efb92b178d3a0fdaf8af97a29778c0b2c
Remove last Host usage from ArchSpec

Summary:
In D39387, I was quick to jump to conclusion that ArchSpec has no
external dependencies. It turns there still was one call to
HostInfo::GetArchitecture left -- for implementing the "systemArch32"
architecture and friends.

Since GetAugmentedArchSpec is the place we handle these "incomplete"
triples that don't specify os or vendor and "systemArch" looks very much
like an incomplete triple, I move its handling there.

After this ArchSpec *really* does not have external dependencies, and
I'll move it to the Utility module as a follow-up.

Reviewers: zturner, clayborg, jingham

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D39896

llvm-svn: 318046
lldb/include/lldb/Host/HostInfoBase.h
lldb/source/Core/ArchSpec.cpp
lldb/source/Host/common/HostInfoBase.cpp
lldb/source/Target/Platform.cpp
lldb/unittests/Host/HostInfoTest.cpp