Browse Source

[PATCH 21/83] adding assembly instruction to support import/export for wasm

From 4c145e3440d327b1226472c65168da8d3e737a11 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Wed, 11 Sep 2019 14:55:06 -0400

git-svn-id: branches/wasm@45898 -
nickysn 5 years ago
parent
commit
952f2db4a7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      compiler/aasmtai.pas

+ 6 - 0
compiler/aasmtai.pas

@@ -90,6 +90,9 @@ interface
           ait_llvmmetadatanode, (* llvm metadata node: !id = !{type value, ...} *)
           ait_llvmmetadatanode, (* llvm metadata node: !id = !{type value, ...} *)
           ait_llvmmetadatareftypedconst, { reference to metadata inside a metadata constant }
           ait_llvmmetadatareftypedconst, { reference to metadata inside a metadata constant }
           ait_llvmmetadatarefoperand, { llvm metadata referece: !metadataname !id }
           ait_llvmmetadatarefoperand, { llvm metadata referece: !metadataname !id }
+{$endif}
+{$ifdef wasm}
+          ait_importexport,
 {$endif}
 {$endif}
           { SEH directives used in ARM,MIPS and x86_64 COFF targets }
           { SEH directives used in ARM,MIPS and x86_64 COFF targets }
           ait_seh_directive,
           ait_seh_directive,
@@ -228,6 +231,9 @@ interface
           'llvmmetadata',
           'llvmmetadata',
           'llvmmetadatareftc',
           'llvmmetadatareftc',
           'llvmmetadatarefop',
           'llvmmetadatarefop',
+{$endif}
+{$ifdef wasm}
+          'importexport',
 {$endif}
 {$endif}
           'cfi',
           'cfi',
           'seh_directive'
           'seh_directive'