Path: blob/main/contrib/llvm-project/lld/ELF/ScriptParser.h
34878 views
//===- ScriptParser.h -------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLD_ELF_SCRIPT_PARSER_H9#define LLD_ELF_SCRIPT_PARSER_H1011#include "lld/Common/LLVM.h"12#include "llvm/Support/MemoryBufferRef.h"1314namespace lld::elf {1516// Parses a linker script. Calling this function updates17// lld::elf::config and lld::elf::script.18void readLinkerScript(MemoryBufferRef mb);1920// Parses a version script.21void readVersionScript(MemoryBufferRef mb);2223void readDynamicList(MemoryBufferRef mb);2425// Parses the defsym expression.26void readDefsym(StringRef name, MemoryBufferRef mb);2728bool hasWildcard(StringRef s);2930} // namespace lld::elf3132#endif333435