[ELF] Remove redundant const_cast

No functional changes.

llvm-svn: 234293
This commit is contained in:
Simon Atanasyan 2015-04-07 04:38:30 +00:00
parent 4ddfd73aa1
commit d526486763
1 changed files with 2 additions and 3 deletions

View File

@ -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));
}