summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2018-02-09 23:13:22 +0000
committerDan Gohman <dan433584@gmail.com>2018-02-09 23:13:22 +0000
commitdb1916a64620b3261fed450cbde047c730d758b5 (patch)
treeea5c58b41aae499f81679568893c6062ec390f88 /clang/lib/Basic/SourceManager.cpp
parent861bec2b7c69d885586725b9b0166913dbae6826 (diff)
downloadbcm5719-llvm-db1916a64620b3261fed450cbde047c730d758b5.tar.gz
bcm5719-llvm-db1916a64620b3261fed450cbde047c730d758b5.zip
[WebAssembly] Add mechanisms for specifying an explicit import module name.
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
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud