aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-30 02:11:59 +0000
committerRui Ueyama <ruiu@google.com>2015-01-30 02:11:59 +0000
commit78e2a2df22a40a7ed097ab64e4bf70833d115ed3 (patch)
tree74e824e5897a2451e59a59e4eb3916557f45dd3f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent38522b8867bacc6cd6714d538ff0caf3c86656da (diff)
downloadllvm-78e2a2df22a40a7ed097ab64e4bf70833d115ed3.zip
llvm-78e2a2df22a40a7ed097ab64e4bf70833d115ed3.tar.gz
llvm-78e2a2df22a40a7ed097ab64e4bf70833d115ed3.tar.bz2
Replace SimpleFileWrapper with a function.
SimpleFileWrapper was a class to wrap an existing (possibly non-mutable) file as a mutable file. We used instances of the class in RoundTrip* passes, because the passes convert mutable files to non-mutable files, and we needed to convert them back to mutable. That feature can be implemented without defining a new class. Generally speaking, if we can implement a feature without defining a class and using only public interface of exsiting classes, that's preferred way to do that. And this is the case. llvm-svn: 227549
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions