1 //===- ScriptParser.h -------------------------------------------*- C++ -*-===//
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLD_ELF_SCRIPT_PARSER_H
11 #define LLD_ELF_SCRIPT_PARSER_H
13 #include "lld/Common/LLVM.h"
14 #include "llvm/Support/MemoryBuffer.h"
19 // Parses a linker script. Calling this function updates
20 // Config and ScriptConfig.
21 void readLinkerScript(MemoryBufferRef MB);
23 // Parses a version script.
24 void readVersionScript(MemoryBufferRef MB);
26 void readDynamicList(MemoryBufferRef MB);
28 // Parses the defsym expression.
29 void readDefsym(StringRef Name, MemoryBufferRef MB);