Add a new kind of GlobalVar for symbolic addresses.

These addresses will allow referencing C/C++/Rust-style global variables
by name directly.
This commit is contained in:
Dan Gohman
2017-10-27 13:27:10 -07:00
parent c2665385b1
commit 6fc45b070a
5 changed files with 48 additions and 7 deletions

View File

@@ -563,6 +563,16 @@ runtime data structures.
variable.
:result GV: Global variable.
.. inst:: GV = globalsym name
Declare a global variable at a symbolic address.
The address of GV is symbolic and will be assigned a relocation, so that
it can be resolved by a later linking phase.
:arg name: External name.
:result GV: Global variable.
.. autoinst:: global_addr