From d61d39ec53110fdd148c33925e389abff528b481 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 14 Sep 2006 18:23:27 +0000 Subject: Adding dllimport, dllexport and external weak linkage types. DLL* linkages got full (I hope) codegeneration support in C & both x86 assembler backends. External weak linkage added for future use, we don't provide any codegeneration, etc. support for it. llvm-svn: 30374 --- llvm/docs/BytecodeFormat.html | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'llvm/docs/BytecodeFormat.html') diff --git a/llvm/docs/BytecodeFormat.html b/llvm/docs/BytecodeFormat.html index 51177492a9e..2b856a71631 100644 --- a/llvm/docs/BytecodeFormat.html +++ b/llvm/docs/BytecodeFormat.html @@ -1025,7 +1025,8 @@ follows. bit(2-4) Linkage type: 0=External, 1=Weak, -2=Appending, 3=Internal, 4=LinkOnce + 2=Appending, 3=Internal, 4=LinkOnce, 5=DllImport, + 6=DllExport, 7=ExternWeak bit(5-31) @@ -1136,13 +1137,16 @@ href="#uint32_vbr">uint32_vbr that describes the function.

bit(4) If this bit is set to 1, the indicated function is external, and there is no Function Definiton - Block in the bytecode file for the function. + Block in the bytecode file for the function. If the function is + external and has dllimport or extern_weak linkage additional + field in the extension word is used to indicate the actual linkage + type. bit(5-30) Type slot number of type for the function. - + bit(31) Indicates whether an extension word follows. @@ -1171,7 +1175,12 @@ follows with the following fields:

If this bit is set, a SectionID follows this vbr. - bit(11-31) + bit(11-12) + Linkage type for external functions. 0 - External + linkage, 1 - DLLImport linkage, 2 - External weak linkage. + + + bit(13-31) Currently unassigned. @@ -1410,8 +1419,8 @@ size
uint32_vbr - The linkage type of the function: 0=External, -1=Weak, 2=Appending, 3=Internal, 4=LinkOnce1 + The linkage type of the function: 0=External, 1=Weak, +2=Appending, 3=Internal, 4=LinkOnce, 5=DllImport, 6=DllExport1 block -- cgit v1.2.3