summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-08-20 16:42:51 +0000
committerZachary Turner <zturner@google.com>2014-08-20 16:42:51 +0000
commit13b1826104584b362e83d15bc72799b03f28ebd2 (patch)
treee09615a35919f90f56022dd1f717af060bfb2620 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
parente1bb055ed393eac50ef19541d240d4cee46b06fa (diff)
downloadbcm5719-llvm-13b1826104584b362e83d15bc72799b03f28ebd2.tar.gz
bcm5719-llvm-13b1826104584b362e83d15bc72799b03f28ebd2.zip
Move Host::GetArchitecture to HostInfo::GetArchitecture.
As a side effect, this patch also eliminates all of the preprocessor conditionals previously used to implement GetArchitecture(). llvm-svn: 216074
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
index d5f2753e5a3..a1b674efee7 100644
--- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
@@ -17,6 +17,7 @@
#include "lldb/Core/Log.h"
#include "lldb/Core/State.h"
#include "lldb/Host/Host.h"
+#include "lldb/Host/HostInfo.h"
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-private-log.h"
#include "Plugins/Process/Utility/RegisterContextLinux_i386.h"
@@ -129,14 +130,15 @@ NativeThreadLinux::GetRegisterContext ()
{
case llvm::Triple::x86:
case llvm::Triple::x86_64:
- if (Host::GetArchitecture().GetAddressByteSize() == 4)
+ if (HostInfo::GetArchitecture().GetAddressByteSize() == 4)
{
// 32-bit hosts run with a RegisterContextLinux_i386 context.
reg_interface = static_cast<RegisterInfoInterface*>(new RegisterContextLinux_i386(target_arch));
}
else
{
- assert((Host::GetArchitecture ().GetAddressByteSize () == 8) && "Register setting path assumes this is a 64-bit host");
+ assert((HostInfo::GetArchitecture().GetAddressByteSize() == 8) &&
+ "Register setting path assumes this is a 64-bit host");
// X86_64 hosts know how to work with 64-bit and 32-bit EXEs using the x86_64 register context.
reg_interface = static_cast<RegisterInfoInterface*> (new RegisterContextLinux_x86_64 (target_arch));
}
OpenPOWER on IntegriCloud