llvm::GlobalObject::setSectionPrefix

Update the section prefix metadata if it differs from Prefix.

Synopsis

Declared in <llvm/IR/GlobalObject.h>

bool
setSectionPrefix(StringRef Prefix);

Description

If existing prefix is different from Prefix, set it to Prefix. If Prefix is empty, the set clears the existing metadata. Returns true if section prefix changed and false otherwise.

Return Value

True if the section prefix changed, false otherwise.

Parameters

NameDescription
PrefixThe new section prefix, or empty to clear it.