mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adapt to llvm.org StringRef API change
This commit is contained in:
committed by
Michael Forster
parent
710799dd09
commit
259d78a350
@@ -25,11 +25,11 @@ using namespace swift::migrator;
|
||||
#pragma mark - MigrationState
|
||||
|
||||
std::string MigrationState::getInputText() const {
|
||||
return SrcMgr.getEntireTextForBuffer(InputBufferID);
|
||||
return SrcMgr.getEntireTextForBuffer(InputBufferID).str();
|
||||
}
|
||||
|
||||
std::string MigrationState::getOutputText() const {
|
||||
return SrcMgr.getEntireTextForBuffer(OutputBufferID);
|
||||
return SrcMgr.getEntireTextForBuffer(OutputBufferID).str();
|
||||
}
|
||||
|
||||
static bool quickDumpText(StringRef OutFilename, StringRef Text) {
|
||||
|
||||
Reference in New Issue
Block a user