diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-05-11 18:39:18 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-05-11 18:39:18 +0000 |
| commit | 31f1d2f53593a7e5449164962edfc0505a669128 (patch) | |
| tree | d79fb8e40b234c30398c18edd67b97c6aee5df27 /lldb/source/Target/ABI.cpp | |
| parent | 31a0b5e2f005b75d0606e3283a2853392c796bb9 (diff) | |
| download | bcm5719-llvm-31f1d2f53593a7e5449164962edfc0505a669128.tar.gz bcm5719-llvm-31f1d2f53593a7e5449164962edfc0505a669128.zip | |
Moved all code from ArchDefaultUnwindPlan and ArchVolatileRegs into their
respective ABI plugins as they were plug-ins that supplied ABI specfic info.
Also hookep up the UnwindAssemblyInstEmulation so that it can generate the
unwind plans for ARM.
Changed the way ABI plug-ins are handed out when you get an instance from
the plug-in manager. They used to return pointers that would be mananged
individually by each client that requested them, but now they are handed out
as shared pointers since there is no state in the ABI objects, they can be
shared.
llvm-svn: 131193
Diffstat (limited to 'lldb/source/Target/ABI.cpp')
| -rw-r--r-- | lldb/source/Target/ABI.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Target/ABI.cpp b/lldb/source/Target/ABI.cpp index 21ac55047e3..0ed7a0d195b 100644 --- a/lldb/source/Target/ABI.cpp +++ b/lldb/source/Target/ABI.cpp @@ -13,23 +13,23 @@ using namespace lldb; using namespace lldb_private; -ABI* +ABISP ABI::FindPlugin (const ArchSpec &arch) { - std::auto_ptr<ABI> abi_ap; + ABISP abi_sp; ABICreateInstance create_callback; for (uint32_t idx = 0; (create_callback = PluginManager::GetABICreateCallbackAtIndex(idx)) != NULL; ++idx) { - abi_ap.reset (create_callback(arch)); + abi_sp = create_callback(arch); - if (abi_ap.get()) - return abi_ap.release(); + if (abi_sp) + return abi_sp; } - - return NULL; + abi_sp.reset(); + return abi_sp; } //---------------------------------------------------------------------- |

