mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add methods to print various SIL things with a SILPrintContext.
Use those methods to make the tests I added in #84811 work even in non-asserts builds, since apparently printID does not.
This commit is contained in:
@@ -1145,7 +1145,7 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SILModule &M){
|
||||
void verificationFailure(const Twine &complaint,
|
||||
const SILInstruction *atInstruction,
|
||||
const SILArgument *atArgument,
|
||||
llvm::function_ref<void(llvm::raw_ostream &OS)> extraContext);
|
||||
llvm::function_ref<void(SILPrintContext &ctx)> extraContext);
|
||||
|
||||
inline bool SILOptions::supportsLexicalLifetimes(const SILModule &mod) const {
|
||||
switch (mod.getStage()) {
|
||||
|
||||
Reference in New Issue
Block a user