llvm::LLVMContext::emitError

emitError overloads

Synopses

Declared in <llvm/IR/LLVMContext.h>

Emit an error message with no associated instruction location.

void
emitError(Twine const& ErrorStr);
» more...

Emit an error for instruction I with message ErrorStr.

void
emitError(
    Instruction const* I,
    Twine const& ErrorStr);
» more...

Parameters

NameDescription
ErrorStrThe error message to emit.
IOptional instruction providing location information.