Skip to content

Commit 4e53bfe

Browse files
committed
Use modified lld vfs interface
1 parent 5415482 commit 4e53bfe

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/lld/link-elfs.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ using namespace llvm;
88

99
LLD_HAS_DRIVER( elf )
1010

11+
namespace lld {
12+
namespace elf {
13+
void useVFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> vfs);
14+
}
15+
}
16+
1117
std::pair<bool, std::string> link_elfs( std::vector<char*> dep_files, std::vector<size_t> dep_file_sizes )
1218
{
1319
// Create File System
@@ -30,7 +36,8 @@ std::pair<bool, std::string> link_elfs( std::vector<char*> dep_files, std::vecto
3036
std::string llvm_stderr;
3137
raw_string_ostream llvm_stderrOS( llvm_stderr );
3238

33-
bool r = lld::elf::link( args, llvm_stdoutOS, llvm_stderrOS, false, false, InMemFS );
39+
lld::elf::useVFS( InMemFS );
40+
bool r = lld::elf::link( args, llvm_stdoutOS, llvm_stderrOS, false, false );
3441

3542
if ( r ) {
3643
return make_pair( true, llvm_stdout );

0 commit comments

Comments
 (0)