llvm::GlobalObject::getAlign

Returns the alignment of the given variable or function.

Synopsis

Declared in <llvm/IR/GlobalObject.h>

MaybeAlign
getAlign() const;

Description

Note that for functions this is the alignment of the code, not the alignment of a function pointer.

Return Value

The optional alignment of this global object.