Skip to content
  1. Feb 10, 2018
    • Dan Gohman's avatar
      [WebAssembly] Add mechanisms for specifying an explicit import module name. · db1916a6
      Dan Gohman authored
      This adds a wasm-import-module function attribute and a .import_module
      assembler directive, for specifying module import names for WebAssembly.
      Currently these may only be used for function symbols; global variables
      may be considered in the future.
      
      WebAssembly has a two-level namespace scheme for symbols, and it's
      normally the linker's job to assign the module name, which is the
      first-level name. The attributes here allow users to specify their
      own module names explicitly, which is useful for tools generating
      bindings to modules defined in other languages.
      
      This feature is not fully usable yet. It will evolve along with the
      ongoing symbol table and lld changes.
      
      Differential Revision: https://reviews.llvm.org/D42520
      
      llvm-svn: 324778
      db1916a6
  2. Feb 09, 2018
Loading