mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Redesign the BuiltinFunctionRefInst to contain an Identifier instead of
a FuncDecl. This makes it much more straight-forward for SIL passes to introduce a new one - without doing name lookup in the builtin module! Swift SVN r10694
This commit is contained in:
@@ -1141,11 +1141,10 @@ Address IRGenModule::getAddrOfSILGlobalVariable(SILGlobalVariable *var) {
|
||||
}
|
||||
|
||||
void IRGenSILFunction::visitBuiltinFunctionRefInst(BuiltinFunctionRefInst *i) {
|
||||
auto *FD = cast<FuncDecl>(i->getReferencedFunction());
|
||||
setLoweredBuiltinValue(SILValue(i, 0), FD->getName());
|
||||
setLoweredBuiltinValue(SILValue(i, 0), i->getName());
|
||||
}
|
||||
|
||||
void IRGenSILFunction::visitFunctionRefInst(swift::FunctionRefInst *i) {
|
||||
void IRGenSILFunction::visitFunctionRefInst(FunctionRefInst *i) {
|
||||
// FIXME: pick the best available explosion level
|
||||
ExplosionKind explosionLevel = ExplosionKind::Minimal;
|
||||
llvm::Function *fnptr =
|
||||
|
||||
Reference in New Issue
Block a user