diff options
author | Greg Clayton <gclayton@apple.com> | 2012-03-20 18:34:04 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-03-20 18:34:04 +0000 |
commit | b3a40ba812cde1ab2571754a97d19215645271ff (patch) | |
tree | 2009e24d3e69bb5dc099eee6845a9220a24d3593 /lldb/source/API/SBDebugger.cpp | |
parent | 5a6011267adb5770cde18c7807b64baccd7587ad (diff) | |
download | bcm5719-llvm-b3a40ba812cde1ab2571754a97d19215645271ff.tar.gz bcm5719-llvm-b3a40ba812cde1ab2571754a97d19215645271ff.zip |
Platforms can now auto-select themselves if you specify a full target triple when doing a "target create" command.
Each platform now knows if it can handle an architecture and a platform can be found using an architecture. Each platform can look at the arch, vendor and OS and know if it should be used or not.
llvm-svn: 153104
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index ac6fc208d23..b61acd75f62 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -612,11 +612,12 @@ SBDebugger::CreateTarget (const char *filename) Error error; const bool add_dependent_modules = true; + PlatformSP platform_sp(m_opaque_sp->GetPlatformList().GetSelectedPlatform()); error = m_opaque_sp->GetTargetList().CreateTarget (*m_opaque_sp, file, arch, add_dependent_modules, - m_opaque_sp->GetPlatformList().GetSelectedPlatform(), + platform_sp, target_sp); if (error.Success()) |