llvm::GlobalValue::getDataLayout

Get the data layout of the module this global belongs to.

Synopsis

Declared in <llvm/IR/GlobalValue.h>

DataLayout const&
getDataLayout() const;

Description

Requires the global to have a parent module.

Return Value

The data layout of the parent module.