Use llvm::Twine instead of llvm::StringRef in several places. (#58)

This commit is contained in:
Peter Johnson
2017-11-22 21:47:56 -08:00
committed by GitHub
parent f73db4a49b
commit 912b74151f
4 changed files with 22 additions and 15 deletions

View File

@@ -16,6 +16,7 @@ namespace llvm {
template <typename T>
class SmallVectorImpl;
class StringRef;
class Twine;
}
namespace wpi {
@@ -94,7 +95,7 @@ class raw_mem_istream : public raw_istream {
class raw_fd_istream : public raw_istream {
public:
raw_fd_istream(llvm::StringRef filename, std::error_code& ec,
raw_fd_istream(const llvm::Twine& filename, std::error_code& ec,
std::size_t bufSize = 4096);
raw_fd_istream(int fd, bool shouldClose, std::size_t bufSize = 4096);
~raw_fd_istream() override;