mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #85244 from aidan-hall/fixing-debug-info-rebase
Retain more debug info in optimized builds
This commit is contained in:
@@ -1554,6 +1554,7 @@ struct BridgedContext {
|
||||
BRIDGED_INLINE void eraseBlock(BridgedBasicBlock block) const;
|
||||
static BRIDGED_INLINE void moveInstructionBefore(BridgedInstruction inst, BridgedInstruction beforeInst);
|
||||
static BRIDGED_INLINE void copyInstructionBefore(BridgedInstruction inst, BridgedInstruction beforeInst);
|
||||
static BRIDGED_INLINE void salvageDebugInfo(BridgedInstruction inst);
|
||||
|
||||
// SSAUpdater
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "swift/SIL/SILVTable.h"
|
||||
#include "swift/SIL/SILWitnessTable.h"
|
||||
#include "swift/SILOptimizer/Utils/ConstExpr.h"
|
||||
#include "swift/SILOptimizer/Utils/DebugOptUtils.h"
|
||||
#include "swift/SIL/SILConstants.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
@@ -3212,6 +3213,10 @@ void BridgedContext::copyInstructionBefore(BridgedInstruction inst, BridgedInstr
|
||||
inst.unbridged()->clone(beforeInst.unbridged());
|
||||
}
|
||||
|
||||
void BridgedContext::salvageDebugInfo(BridgedInstruction inst) {
|
||||
swift::salvageDebugInfo(inst.unbridged());
|
||||
}
|
||||
|
||||
OptionalBridgedFunction BridgedContext::lookupStdlibFunction(BridgedStringRef name) const {
|
||||
return {context->lookupStdlibFunction(name.unbridged())};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user