diff options
| author | Mason Reed <mason@vector35.com> | 2025-11-23 17:18:02 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-12-15 17:26:10 -0500 |
| commit | 2a899b31320a5ebfba009961f47b8f53b4eadf02 (patch) | |
| tree | 1b68df2700fe542eca0336792b41abf9daf48d84 /plugins | |
| parent | 906de8cf124a6cc74d28c1f82ea9b4883b97efde (diff) | |
[WARP] Skip non-defined function symbols when collecting constraints
Reduces the size of constraints, reducing the size of chunks.
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/warp/src/cache/guid.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/warp/src/cache/guid.rs b/plugins/warp/src/cache/guid.rs index df215554..29e14858 100644 --- a/plugins/warp/src/cache/guid.rs +++ b/plugins/warp/src/cache/guid.rs @@ -155,8 +155,10 @@ impl ConstraintBuilder { let guid_constraint = Constraint::from_function(&guid, Some(offset)); constraints.push(guid_constraint); } - let symbol_constraint = self.related_symbol_constraint(&function.symbol(), offset); - constraints.push(symbol_constraint); + if let Some(symbol) = function.defined_symbol() { + let symbol_constraint = self.related_symbol_constraint(&symbol, offset); + constraints.push(symbol_constraint); + } constraints } |
