@@ -183,7 +183,7 @@ RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) {
183
183
std::lock_guard<sys::Mutex> locked (lock);
184
184
185
185
// Save information about our target
186
- Arch = (Triple::ArchType) Obj.getArch ();
186
+ Arch = Obj.getArch ();
187
187
IsTargetLittleEndian = Obj.isLittleEndian ();
188
188
setMipsABI (Obj);
189
189
@@ -1361,18 +1361,17 @@ std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
1361
1361
RuntimeDyld::loadObject (const ObjectFile &Obj) {
1362
1362
if (!Dyld) {
1363
1363
if (Obj.isELF ())
1364
- Dyld =
1365
- createRuntimeDyldELF (static_cast <Triple::ArchType>(Obj.getArch ()),
1366
- MemMgr, Resolver, ProcessAllSections,
1367
- std::move (NotifyStubEmitted));
1364
+ Dyld = createRuntimeDyldELF (Obj.getArch (), MemMgr, Resolver,
1365
+ ProcessAllSections,
1366
+ std::move (NotifyStubEmitted));
1368
1367
else if (Obj.isMachO ())
1369
- Dyld = createRuntimeDyldMachO (
1370
- static_cast <Triple::ArchType>(Obj. getArch ()), MemMgr, Resolver ,
1371
- ProcessAllSections, std::move (NotifyStubEmitted));
1368
+ Dyld = createRuntimeDyldMachO (Obj. getArch (), MemMgr, Resolver,
1369
+ ProcessAllSections ,
1370
+ std::move (NotifyStubEmitted));
1372
1371
else if (Obj.isCOFF ())
1373
- Dyld = createRuntimeDyldCOFF (
1374
- static_cast <Triple::ArchType>(Obj. getArch ()), MemMgr, Resolver ,
1375
- ProcessAllSections, std::move (NotifyStubEmitted));
1372
+ Dyld = createRuntimeDyldCOFF (Obj. getArch (), MemMgr, Resolver,
1373
+ ProcessAllSections ,
1374
+ std::move (NotifyStubEmitted));
1376
1375
else
1377
1376
report_fatal_error (" Incompatible object format!" );
1378
1377
}
0 commit comments