llvm::LTOModule::isBitcodeFile

isBitcodeFile overloads

Synopses

Declared in <llvm/LTO/legacy/LTOModule.h>

Returns 'true' if the file at path contains LLVM bitcode.

static
bool
isBitcodeFile(StringRef path);
» more...

Returns 'true' if the file or memory contents is LLVM bitcode.

static
bool
isBitcodeFile(
    void const* mem,
    size_t length);
» more...

Return Value

  • True if the file contains LLVM bitcode.
  • True if the memory contents are LLVM bitcode.

Parameters

NameDescription
pathPath of the file to inspect.
memPointer to the memory contents to inspect.
lengthNumber of bytes at mem.