diff options
| author | FICTURE7 <FICTURE7@gmail.com> | 2021-10-05 21:04:55 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-05 14:04:55 -0300 |
| commit | ecc64c934da43f881c2821bc9bc52ee42e55af2f (patch) | |
| tree | eb75ff0b3e0426b59b6d0f8c9bed6078f06ef15e /ARMeilleure/CodeGen/Linking/RelocInfo.cs | |
| parent | 11b437eafc59f81e767c6389c16dcbb5c7e82f11 (diff) | |
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`
Diffstat (limited to 'ARMeilleure/CodeGen/Linking/RelocInfo.cs')
| -rw-r--r-- | ARMeilleure/CodeGen/Linking/RelocInfo.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 /// <summary> /// Gets the set of <see cref="RelocEntry"/>. /// </summary> - public ReadOnlySpan<RelocEntry> Entries => _entries ?? Array.Empty<RelocEntry>(); + public ReadOnlySpan<RelocEntry> Entries => _entries; /// <summary> /// Initializes a new instance of the <see cref="RelocInfo"/> struct with the specified set of @@ -26,7 +26,7 @@ namespace ARMeilleure.CodeGen.Linking /// <param name="entries">Set of <see cref="RelocInfo"/> to use</param> public RelocInfo(RelocEntry[] entries) { - _entries = entries ?? Array.Empty<RelocEntry>(); + _entries = entries; } } }
\ No newline at end of file |
