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:
@@ -371,11 +371,11 @@ SILGlobalAddrInst::SILGlobalAddrInst(SILLocation Loc, SILGlobalVariable *Global)
|
||||
{}
|
||||
|
||||
const IntrinsicInfo &BuiltinFunctionRefInst::getIntrinsicInfo() const {
|
||||
return getModule().getIntrinsicInfo(Function->getName());
|
||||
return getModule().getIntrinsicInfo(getName());
|
||||
}
|
||||
|
||||
const BuiltinInfo &BuiltinFunctionRefInst::getBuiltinInfo() const {
|
||||
return getModule().getBuiltinInfo(Function->getName());
|
||||
return getModule().getBuiltinInfo(getName());
|
||||
}
|
||||
|
||||
static unsigned getWordsForBitWidth(unsigned bits) {
|
||||
|
||||
Reference in New Issue
Block a user