This allows clients of the LTO API to determine the name of the fallback symbol for COFF weak externals.
Details
Diff Detail
- Build Status
Buildable 3569 Build 3569: arc lint + arc unit
Event Timeline
include/llvm/LTO/LTO.h | ||
---|---|---|
150 | I'd make this function specifically for COFF weak externals. No other format requires this feature during symbol resolution, as far as I know. | |
151 | *refers to | |
153 | Maybe assert that the symbol is a weak external? | |
155 | This could be a bitcast or a gep, so I think you need to call stripPointerCasts on the result. You also need to mangle the symbol name, see how we set Name for example. | |
157 | I don't think we can get here if the symbol is a valid weak external. I'd assert (via cast or otherwise) that this is the case. |
- renamed to getCOFFWeakExternalFallback to indicate this only works for COFF weak externals
- asserted that the symbol is a weak external
- added mangling
I'd make this function specifically for COFF weak externals. No other format requires this feature during symbol resolution, as far as I know.