search for: initelfmcobjectfileinfo

Displaying 1 result from an estimated 1 matches for "initelfmcobjectfileinfo".

2020 Nov 10
1
Fwd: Select output section for a function based on a subtarget feature
...erent text section (text_vle). I can see that TargetMachine has a method getSubtargetImpl which can be overridden for the implementation and it can return different subtargets for different function attributes. What I'm struggling with is connecting it to section selection; in MCObjectFileInfo::initELFMCObjectFileInfo a default text section is created but since here section should be selected based on function, I'm not sure where object file writer implementation should be "connected" to the subtarget info. What would be the appropriate place for this kind of logic? Best Regards, Vlad