mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use the new InputFile Constructor
This commit is contained in:
@@ -224,7 +224,8 @@ static bool makeParserAST(CompilerInstance &CI, StringRef Text,
|
||||
std::unique_ptr<llvm::MemoryBuffer> Buf;
|
||||
Buf = llvm::MemoryBuffer::getMemBuffer(Text, "<module-interface>");
|
||||
Invocation.getFrontendOptions().InputsAndOutputs.addInput(
|
||||
InputFile(Buf.get()->getBufferIdentifier(), false, Buf.get()));
|
||||
InputFile(Buf.get()->getBufferIdentifier(), /*isPrimary*/false, Buf.get(),
|
||||
file_types::TY_Swift));
|
||||
return CI.setup(Invocation);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user