Return a constant reference to the value's name.

Synopsis

Declared in <llvm/IR/Value.h>

StringRef
getName() const;

Description

This guaranteed to return the same reference as long as the value is not modified. If the value has a name, this does a hashtable lookup, so it's not free.

Return Value

The value's name, or an empty StringRef if unnamed.

Created with MrDocs