llvm::Constant::needsRelocation

Return true if this constant may generate a relocation entry.

Synopsis

Declared in <llvm/IR/Constant.h>

bool
needsRelocation() const;

Description

Classifies the entry according to whether or not it may generate a relocation entry (either static or dynamic). This must be conservative, so if it might codegen to a relocatable entry, it should say so.

FIXME: This really should not be in IR.

Return Value

True if this constant may generate a relocation entry.