[llvm] r257436 - [WebAssembly] Define a custom segment type for function definitions.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 18:58:13 PST 2016
Author: djg
Date: Mon Jan 11 20:58:12 2016
New Revision: 257436
URL: http://llvm.org/viewvc/llvm-project?rev=257436&view=rev
Log:
[WebAssembly] Define a custom segment type for function definitions.
Since function definitions are not loaded into the address space, PT_LOAD is
inappropriate. PT_WEBASSEMBLY_FUNCTIONS is used to identify where the function
definitions are so that they can be processed at program startup time.
Modified:
llvm/trunk/include/llvm/Support/ELF.h
Modified: llvm/trunk/include/llvm/Support/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ELF.h?rev=257436&r1=257435&r2=257436&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ELF.h (original)
+++ llvm/trunk/include/llvm/Support/ELF.h Mon Jan 11 20:58:12 2016
@@ -1029,7 +1029,10 @@ enum {
PT_AMDGPU_HSA_LOAD_GLOBAL_PROGRAM = 0x60000000,
PT_AMDGPU_HSA_LOAD_GLOBAL_AGENT = 0x60000001,
PT_AMDGPU_HSA_LOAD_READONLY_AGENT = 0x60000002,
- PT_AMDGPU_HSA_LOAD_CODE_AGENT = 0x60000003
+ PT_AMDGPU_HSA_LOAD_CODE_AGENT = 0x60000003,
+
+ // WebAssembly program header types.
+ PT_WEBASSEMBLY_FUNCTIONS = PT_LOPROC + 0, // Function definitions.
};
// Segment flag bits.
More information about the llvm-commits
mailing list