[llvm-dev] Get/set custom section information of function by using LLVM Pass.

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 20 02:16:50 PST 2018


Hi,

On Tue, 20 Nov 2018 at 08:45, 닉네임 via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> I've explored member functions of LLVM Function Class, but couldn't find a proper function that can be used to set/get the custom section information.

GlobalValue has getSection, GlobalObject has setSection. And Function
is a subclass of both of these, fortunately.

Cheers.

Tim.


More information about the llvm-dev mailing list