[lldb][NFC] Remove WriteRegister copy-pasta from ObjectFileMachO
authorRaphael Isemann <teemperor@gmail.com>
Wed, 4 Sep 2019 09:10:28 +0000 (09:10 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 4 Sep 2019 09:10:28 +0000 (09:10 +0000)
commitac6aff70a82191314b60459cd8fe64c51d09672e
tree09e12fc640a3067390f3f5416d8f3db731bd4e39
parentb4745fad24663ae50a592b57c6e1bf1c7e4d1527
[lldb][NFC] Remove WriteRegister copy-pasta from ObjectFileMachO

The function had the same name as one of the member function, so
it was just copied to all classes so that the lookup works. We
could also give the function a more better and unique name
(because it's actually printing the register value and writing
to the stream, not writing to the register).

Also removes the unused return value.

llvm-svn: 370854
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp