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 3577 Build 3577: arc lint + arc unit
Event Timeline
include/llvm/LTO/LTO.h | ||
---|---|---|
156 | I'd make this function specifically for COFF weak externals. No other format requires this feature during symbol resolution, as far as I know. | |
157 | *refers to | |
159 | Maybe assert that the symbol is a weak external? | |
161 | 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. | |
163 | 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.