mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[Orc] Rename local variable to avoid confusion with equally-named class member (NFC)
This commit is contained in:
parent
511a7fc0e2
commit
0e6bd8e63e
@ -1023,18 +1023,18 @@ LLJIT::createObjectLinkingLayer(LLJITBuilderState &S, ExecutionSession &ES) {
|
||||
// Otherwise default to creating an RTDyldObjectLinkingLayer that constructs
|
||||
// a new SectionMemoryManager for each object.
|
||||
auto GetMemMgr = []() { return std::make_unique<SectionMemoryManager>(); };
|
||||
auto ObjLinkingLayer =
|
||||
auto Layer =
|
||||
std::make_unique<RTDyldObjectLinkingLayer>(ES, std::move(GetMemMgr));
|
||||
|
||||
if (S.JTMB->getTargetTriple().isOSBinFormatCOFF()) {
|
||||
ObjLinkingLayer->setOverrideObjectFlagsWithResponsibilityFlags(true);
|
||||
ObjLinkingLayer->setAutoClaimResponsibilityForObjectSymbols(true);
|
||||
Layer->setOverrideObjectFlagsWithResponsibilityFlags(true);
|
||||
Layer->setAutoClaimResponsibilityForObjectSymbols(true);
|
||||
}
|
||||
|
||||
// FIXME: Explicit conversion to std::unique_ptr<ObjectLayer> added to silence
|
||||
// errors from some GCC / libstdc++ bots. Remove this conversion (i.e.
|
||||
// just return ObjLinkingLayer) once those bots are upgraded.
|
||||
return std::unique_ptr<ObjectLayer>(std::move(ObjLinkingLayer));
|
||||
return std::unique_ptr<ObjectLayer>(std::move(Layer));
|
||||
}
|
||||
|
||||
Expected<std::unique_ptr<IRCompileLayer::IRCompiler>>
|
||||
|
Loading…
Reference in New Issue
Block a user