mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
[objc-arc] Performed some small cleanups in ARCRuntimeEntryPoints and added an llvm_unreachable after the switch to quiet -Wreturn_type errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c3e6edba38
commit
462e998f07
@ -77,16 +77,18 @@ public:
|
||||
return getI8XRetI8XEntryPoint(Autorelease, "objc_autorelease", true);
|
||||
case EPT_StoreStrong:
|
||||
return getI8XRetI8XXI8XEntryPoint(StoreStrong, "objc_storeStrong");
|
||||
case EPT_RetainRV:
|
||||
return getI8XRetI8XEntryPoint(RetainRV,
|
||||
"objc_retainAutoreleasedReturnValue", true);
|
||||
case EPT_RetainAutorelease:
|
||||
return getI8XRetI8XEntryPoint(RetainAutorelease, "objc_retainAutorelease",
|
||||
true);
|
||||
case EPT_RetainAutoreleaseRV:
|
||||
return getI8XRetI8XEntryPoint(RetainAutoreleaseRV,
|
||||
"objc_retainAutoreleaseReturnValue", true);
|
||||
case EPT_RetainRV:
|
||||
return getI8XRetI8XEntryPoint(RetainRV,
|
||||
"objc_retainAutoreleasedReturnValue", true);
|
||||
}
|
||||
|
||||
llvm_unreachable("Switch should be a covered switch.");
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user