diff options
author | Jim Ingham <jingham@apple.com> | 2018-11-13 18:18:32 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2018-11-13 18:18:32 +0000 |
commit | 7716ddf18d967018c62b2c1dd20a1efda756fed9 (patch) | |
tree | 636ae37666629fcd59f776f654afa9061fb8942b /lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp | |
parent | cbde0d9c7be1991751dc3eb5928294d2e00ef26a (diff) | |
download | bcm5719-llvm-7716ddf18d967018c62b2c1dd20a1efda756fed9.tar.gz bcm5719-llvm-7716ddf18d967018c62b2c1dd20a1efda756fed9.zip |
Since ABI's now hold a process WP, they should be handed
out one per process rather than keeping a single global instance.
Differential Revision: https://reviews.llvm.org/D54460
llvm-svn: 346775
Diffstat (limited to 'lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp')
-rw-r--r-- | lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp b/lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp index 0a980468d73..bee476c47d4 100644 --- a/lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp +++ b/lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp @@ -1324,16 +1324,13 @@ size_t ABISysV_arm::GetRedZoneSize() const { return 0; } ABISP ABISysV_arm::CreateInstance(lldb::ProcessSP process_sp, const ArchSpec &arch) { - static ABISP g_abi_sp; const llvm::Triple::ArchType arch_type = arch.GetTriple().getArch(); const llvm::Triple::VendorType vendor_type = arch.GetTriple().getVendor(); if (vendor_type != llvm::Triple::Apple) { if ((arch_type == llvm::Triple::arm) || (arch_type == llvm::Triple::thumb)) { - if (!g_abi_sp) - g_abi_sp.reset(new ABISysV_arm(process_sp)); - return g_abi_sp; + return ABISP(new ABISysV_arm(process_sp)); } } |