From ecc64c934da43f881c2821bc9bc52ee42e55af2f Mon Sep 17 00:00:00 2001 From: FICTURE7 Date: Tue, 5 Oct 2021 21:04:55 +0400 Subject: Add `Operand.Label` support to `Assembler` (#2680) * Add `Operand.Label` support to `Assembler` This adds label support to `Assembler` and enables branch tightening when compiling with relocatables. Jump management and patching has been moved to the `Assembler`. * Move instruction table to `Assembler.Table` * Set PTC internal version * Rename `Assembler.Table` to `AssemblerTable` --- ARMeilleure/CodeGen/Linking/RelocInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ARMeilleure/CodeGen/Linking/RelocInfo.cs') diff --git a/ARMeilleure/CodeGen/Linking/RelocInfo.cs b/ARMeilleure/CodeGen/Linking/RelocInfo.cs index 922b8bfe..caaf08e3 100644 --- a/ARMeilleure/CodeGen/Linking/RelocInfo.cs +++ b/ARMeilleure/CodeGen/Linking/RelocInfo.cs @@ -17,7 +17,7 @@ namespace ARMeilleure.CodeGen.Linking /// /// Gets the set of . /// - public ReadOnlySpan Entries => _entries ?? Array.Empty(); + public ReadOnlySpan Entries => _entries; /// /// Initializes a new instance of the struct with the specified set of @@ -26,7 +26,7 @@ namespace ARMeilleure.CodeGen.Linking /// Set of to use public RelocInfo(RelocEntry[] entries) { - _entries = entries ?? Array.Empty(); + _entries = entries; } } } \ No newline at end of file -- cgit v1.2.3