mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 21:10:29 +00:00
Improve dead code elimination
This commit is contained in:
parent
760db8c5ad
commit
0e36cb3ac4
6606 changed files with 9685 additions and 9854 deletions
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/dce.h"
|
||||
#include "libc/macros.h"
|
||||
.source __FILE__
|
||||
|
||||
|
@ -31,7 +32,11 @@ kNtSystemDirectory:
|
|||
.previous
|
||||
|
||||
.init.start 300,_init_kNtSystemDirectory
|
||||
#if SupportsWindows()
|
||||
pushpop BYTES,%rdx
|
||||
mov __imp_GetSystemDirectoryA(%rip),%rax
|
||||
call __getntsyspath
|
||||
#else
|
||||
add $BYTES,%rdi
|
||||
#endif
|
||||
.init.end 300,_init_kNtSystemDirectory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue