summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-02-02 17:50:03 +0000
committerPavel Labath <labath@google.com>2017-02-02 17:50:03 +0000
commitfc89bbcc712550d91e018a682e9369df88e80872 (patch)
tree777a1edee3655110fa253724d8f86e906ac9057b /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent0325a77c5b59c1d5b9508dfc49625d7f5e9051ee (diff)
downloadbcm5719-llvm-fc89bbcc712550d91e018a682e9369df88e80872.tar.gz
bcm5719-llvm-fc89bbcc712550d91e018a682e9369df88e80872.zip
Unify PlatformPOSIX::ResolveExecutable
Summary: various platforms very using nearly identical code for this method. As far as I can tell there was nothing platform-specific about the differences, but rather it looked like it was caused by tiny tweaks being made to individual copies without affecting the overall functionality. I have taken the superset of all these tweaks and put it into one method in the base class (incidentaly, nobody was using the base class implementation of the method, as all classes were overriding it). From the darwin class I took the slightly improved error reporting (checking whether the file is readable) and the ResolveExecutableInBundle call (which has no effect elsewhere as the function is already a no-op on non-darwin platforms). From the linux class I took the set-the-triple-vendor-to-host-if-unspecified tweak (present in PlatformKalimba as well). PlatformWindows has an identical copy as well. We could resolve that by pushing this code further down into Platform class, that that would require pushing the m_remote_platform_sp member as well, which seems like a bad design choice. Reviewers: clayborg, emaste, krytarowski Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D29406 llvm-svn: 293910
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud