[PATCH] D41387: Remove llvm::MemoryBuffer const_casts

2017-12-20 Thread Pavel Labath via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL321167: Remove llvm::MemoryBuffer const_casts (authored by labath, committed by ). Repository: rL LLVM https://reviews.llvm.org/D41387 Files: cfe/trunk/lib/Basic/SourceManager.cpp

[PATCH] D41387: Remove llvm::MemoryBuffer const_casts

2017-12-19 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Seems good Repository: rC Clang https://reviews.llvm.org/D41387 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D41387: Remove llvm::MemoryBuffer const_casts

2017-12-19 Thread Pavel Labath via Phabricator via cfe-commits
labath created this revision. labath added reviewers: dblaikie, rsmith. llvm has grown a WritableMemoryBuffer class, which is convertible (inherits from) a MemoryBuffer. We can use it to avoid conts_casting the buffer contents when we want to write to it. Repository: rC Clang