Instead of having an UnwindTable own a single assembly profiler,
authorJason Molenda <jmolenda@apple.com>
Fri, 23 May 2014 01:48:10 +0000 (01:48 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 23 May 2014 01:48:10 +0000 (01:48 +0000)
commitab35aa92daf1498bed8393a44ddf950d54439cab
tree50c4417acc88fa6649aee859585dd6c335aee6f2
parent23a285d2d6e9d175e2f06344b39dd1d18a10c24a
Instead of having an UnwindTable own a single assembly profiler,
and sharing it with all of its FuncUnwinders, have each FuncUnwinder
create an AssemblyProfiler on demand as needed.  I was worried that
the cost of creating the llvm disassemblers would be high for this
approach but it's not supposed to be an expensive operation, and it
means we don't need to add locks around this section of code.
<rdar://problem/16992332>

llvm-svn: 209493
lldb/include/lldb/Symbol/FuncUnwinders.h
lldb/include/lldb/Symbol/UnwindTable.h
lldb/source/Symbol/FuncUnwinders.cpp
lldb/source/Symbol/UnwindTable.cpp