mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add helper functions to SILBlock and SILFunction.
Swift SVN r18858
This commit is contained in:
@@ -94,6 +94,10 @@ size_t SILBasicBlock::getBBArgIndex(SILArgument *Target) {
|
||||
llvm_unreachable("Expected to find argument in block's argument list!");
|
||||
}
|
||||
|
||||
SILArgument *SILBasicBlock::createArgument(SILType Ty) {
|
||||
return new (getModule()) SILArgument(Ty, this);
|
||||
}
|
||||
|
||||
/// \brief Splits a basic block into two at the specified instruction.
|
||||
///
|
||||
/// Note that all the instructions BEFORE the specified iterator
|
||||
|
||||
Reference in New Issue
Block a user