mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-07 01:51:10 +00:00
[ELF] Remove redundant const_cast
No functional changes. llvm-svn: 234293
This commit is contained in:
parent
4ddfd73aa1
commit
d526486763
@ -370,9 +370,8 @@ void OutputELFWriter<ELFT>::createImplicitFiles(
|
||||
auto callback = [this](StringRef sym, RuntimeFile<ELFT> &file) {
|
||||
processUndefinedSymbol(sym, file);
|
||||
};
|
||||
auto &ctx = const_cast<ELFLinkingContext &>(_ctx);
|
||||
ctx.setUndefinesResolver(
|
||||
llvm::make_unique<DynamicSymbolFile<ELFT>>(ctx, std::move(callback)));
|
||||
_ctx.setUndefinesResolver(
|
||||
llvm::make_unique<DynamicSymbolFile<ELFT>>(_ctx, std::move(callback)));
|
||||
// Add script defined symbols
|
||||
result.push_back(std::move(_scriptFile));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user