Read the header of the specified bitcode buffer and extract just the triple information. If successful, this returns a string. On error, this returns "".

Synopsis

Declared in <llvm/Bitcode/BitcodeReader.h>

Expected<std::string>
getBitcodeTargetTriple(MemoryBufferRef Buffer);

Return Value

The target triple string, or an empty string on error.

Parameters

Name

Description

Buffer

Memory buffer containing the bitcode.

Created with MrDocs