diff options
Diffstat (limited to 'lld/ELF/Relocations.h')
| -rw-r--r-- | lld/ELF/Relocations.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lld/ELF/Relocations.h b/lld/ELF/Relocations.h index da0f2289bc90..f70d255ba229 100644 --- a/lld/ELF/Relocations.h +++ b/lld/ELF/Relocations.h @@ -46,6 +46,7 @@ enum RelExpr { R_PLT, R_PLT_PC, R_PLT_GOTPLT, + R_RELAX_HINT, R_RELAX_GOT_PC, R_RELAX_GOT_PC_NOPIC, R_RELAX_TLS_GD_TO_IE, @@ -139,12 +140,7 @@ class InputSectionDescription; class ThunkCreator { public: // Return true if Thunks have been added to OutputSections - bool createThunks(ArrayRef<OutputSection *> outputSections); - - // The number of completed passes of createThunks this permits us - // to do one time initialization on Pass 0 and put a limit on the - // number of times it can be called to prevent infinite loops. - uint32_t pass = 0; + bool createThunks(uint32_t pass, ArrayRef<OutputSection *> outputSections); private: void mergeThunks(ArrayRef<OutputSection *> outputSections); @@ -186,6 +182,11 @@ private: // so we need to make sure that there is only one of them. // The Mips LA25 Thunk is an example of an inline ThunkSection. llvm::DenseMap<InputSection *, ThunkSection *> thunkedSections; + + // The number of completed passes of createThunks this permits us + // to do one time initialization on Pass 0 and put a limit on the + // number of times it can be called to prevent infinite loops. + uint32_t pass = 0; }; // Return a int64_t to make sure we get the sign extension out of the way as |
