summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-06-24 22:08:43 +0000
committerJason Molenda <jmolenda@apple.com>2019-06-24 22:08:43 +0000
commit868a394bb60dbeb1dc92578c34207265a7b528f6 (patch)
tree3191c373b89ad4e9440e6b41a5fa9b9c79eb5c72 /clang/lib/Serialization/ModuleManager.cpp
parent4bd4acc969fc2fa8ba00c7405e22aa4e5e980646 (diff)
downloadbcm5719-llvm-868a394bb60dbeb1dc92578c34207265a7b528f6.tar.gz
bcm5719-llvm-868a394bb60dbeb1dc92578c34207265a7b528f6.zip
Don't link against the DebugSymbols private framework; try to dlopen
+ dlsym the two functions we need from there at runtime. I'm not maintaining a negative cache if DebugSymbols is absent, so we'll try to dlopen() it on every call to LocateMacOSXFilesUsingDebugSymbols but this file is only built on mac and iOS type systems, so there's a slight perf impact running lldb on an iOS type system. I store the function pointer results in two global variables without any locking; two threads calling into LocateMacOSXFilesUsingDebugSymbols for the first time will both try to set these fptrs, but they'll be setting them to the same value, so I'm not too worried. I didn't see where in the cmake build configurations we link against DebugSymbols, but I removed the dependency from the xcode project file. <rdar://problem/49458356> llvm-svn: 364243
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud