"git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "1df65186d1d46600627d1631e737f09cc7297ef8"
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
Loading
Please register or sign in to comment