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