Add some unit tests for ArchSpec.
authorZachary Turner <zturner@google.com>
Tue, 13 Sep 2016 20:40:26 +0000 (20:40 +0000)
committerZachary Turner <zturner@google.com>
Tue, 13 Sep 2016 20:40:26 +0000 (20:40 +0000)
commita8b668432d6c4517cd2326b259fb58842016bce5
tree65bce750233fc2e08ee293bbf3e0039dabc3bb9d
parentab40f9d0ef9d8e8afefce9a4f44239fa23e76250
Add some unit tests for ArchSpec.

I'm was trying to do some cleanup and code modernization and in
doing so I needed to change ParseMachCPUDashSubtypeTriple to take
a StringRef.  To ensure I don't break anything, I'm adding some
unit tests for this function.  As a side benefit, this also expands
test coverage of this function to all platforms, since in general
this code would rarely be exercised on non Mac platforms, and never
in the test suite.

llvm-svn: 281387
lldb/include/lldb/Core/ArchSpec.h
lldb/source/Core/ArchSpec.cpp
lldb/unittests/Core/ArchSpecTest.cpp [new file with mode: 0644]
lldb/unittests/Core/CMakeLists.txt