HomePhabricator

[ELF] Add support for multiple passes to createThunks()

Authored by peter.smith on Oct 27 2017, 2:07 AM.

Description

[ELF] Add support for multiple passes to createThunks()

This change allows Thunks to be added on multiple passes. To do this we must
merge only the thunks added in each pass, and deal with thunks that have
drifted out of range of their callers.

A thunk may end out of range of its caller if enough thunks are added in
between the caller and the thunk. To handle this we create another thunk.

Differential Revision: https://reviews.llvm.org/D34692

llvm-svn: 316754

Details

Committed
peter.smithOct 27 2017, 2:07 AM
Differential Revision
D34692: [LLD][ELF] Add support for multiple passes to createThunks()
Parents
rG878827d93aef: DAG: Fold fma (fneg x), K, y -> fma x, -K, y
Branches
Unknown
Tags
Unknown