[Lldb-commits] [PATCH] D30622: Remove FileSpec::ReadFileContents

2017-03-06 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297095: Remove FileSpec::ReadFileContents. (authored by zturner). Changed prior to commit: https://reviews.llvm.org/D30622?vs=90617&id=90759#toc Repository: rL LLVM https://reviews.llvm.org/D30622

[Lldb-commits] [PATCH] D30622: Remove FileSpec::ReadFileContents

2017-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. Looks great. One thing I'd consider is adding a function which returns the data buffer as a StringRef (`AsStringRef()` ?) instead of the GetChars function, but I don't feel strongly about it.

[Lldb-commits] [PATCH] D30622: Remove FileSpec::ReadFileContents

2017-03-05 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. The idea is that `DataBufferLLVM` already covers this use case, so there is no point duplicating the code. The only tricky thing is that I found one case where we attempt to modify the bytes we read in (in `ObjectFilePECOFF`). It seems kind of hackish, but it wo