LLVM
15.0.0git
|
#include "llvm/BinaryFormat/Magic.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/COFF.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/MemoryBuffer.h"
#include <unistd.h>
Go to the source code of this file.
Functions | |
template<size_t N> | |
static bool | startswith (StringRef Magic, const char(&S)[N]) |
Definition at line 28 of file Magic.cpp.
References llvm::msf::Magic, N, and S.
Referenced by llvm::StringRef::consume_front(), llvm::opt::OptTable::findByPrefix(), llvm::sys::detail::getHostCPUNameForARM(), llvm::sys::detail::getHostCPUNameForRISCV(), llvm::sys::detail::getHostCPUNameForS390x(), llvm::identify_magic(), llvm::makePostTransformationMetadata(), and llvm::Triple::normalize().