ΒΆExpected<std::string> getBitcodeTargetTriple(
    llvm::MemoryBufferRef Buffer)

Description

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

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:154

Parameters

llvm::MemoryBufferRef Buffer