llvm::LowerCommentStringPass

Pass that lowers loadtime comment string metadata for supported targets.

Synopsis

Declared in <llvm/Transforms/Utils/LowerCommentStringPass.h>

class LowerCommentStringPass
    : public RequiredPassInfoMixin<LowerCommentStringPass>

Description

Processes copyright comment strings created by Clang for #pragma comment(copyright, ...). Attaches !implicit.ref metadata from every defined function to each !loadtime_comment global so backends such as PowerPC AIX can keep the strings alive via .ref relocations. Currently enabled for AIX targets only.

Base Classes

NameDescription
RequiredPassInfoMixin<LowerCommentStringPass>A CRTP mix-in for passes that should not be skipped.

Member Functions

NameDescription
run Run the lower-comment-string pass over the module.

Static Member Functions

NameDescription
isRequired Return true; required passes cannot be skipped.