diff options
author | Greg Clayton <gclayton@apple.com> | 2014-03-20 21:31:55 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-03-20 21:31:55 +0000 |
commit | 906e9acf91b13e1c3b647d9051326596af673283 (patch) | |
tree | 43b7e3fc447f5daca168dc1c3f8424ccfa10523a /lldb/source/Core/DataExtractor.cpp | |
parent | 98629c4e4de90380fd3821b7111ff1bd74761ffe (diff) | |
download | bcm5719-llvm-906e9acf91b13e1c3b647d9051326596af673283.tar.gz bcm5719-llvm-906e9acf91b13e1c3b647d9051326596af673283.zip |
Switch over to use the ArchSpec::GetMachine() instead of ArchSpec::GetCore() to keep the code more portable as we add new core types to ArchSpec.
llvm-svn: 204400
Diffstat (limited to 'lldb/source/Core/DataExtractor.cpp')
-rw-r--r-- | lldb/source/Core/DataExtractor.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp index e7044bddbd3..5acc8ffed0f 100644 --- a/lldb/source/Core/DataExtractor.cpp +++ b/lldb/source/Core/DataExtractor.cpp @@ -1823,13 +1823,10 @@ DataExtractor::Dump (Stream *s, else if (item_bit_size == ast->getTypeSize(ast->LongDoubleTy)) { llvm::APInt apint; - switch (target_sp->GetArchitecture().GetCore()) + switch (target_sp->GetArchitecture().GetMachine()) { - case ArchSpec::eCore_x86_32_i386: - case ArchSpec::eCore_x86_32_i486: - case ArchSpec::eCore_x86_32_i486sx: - case ArchSpec::eCore_x86_64_x86_64: - case ArchSpec::eCore_x86_64_x86_64h: + case llvm::Triple::x86: + case llvm::Triple::x86_64: // clang will assert when contructing the apfloat if we use a 16 byte integer value if (GetAPInt (*this, &offset, 10, apint)) { |