1 //===- ScriptParser.h -------------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Linker 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef LLD_ELF_SCRIPT_PARSER_H 11 #define LLD_ELF_SCRIPT_PARSER_H 12 13 #include "lld/Common/LLVM.h" 14 #include "llvm/Support/MemoryBuffer.h" 15 16 namespace lld { 17 namespace elf { 18 19 // Parses a linker script. Calling this function updates 20 // Config and ScriptConfig. 21 void readLinkerScript(MemoryBufferRef MB); 22 23 // Parses a version script. 24 void readVersionScript(MemoryBufferRef MB); 25 26 void readDynamicList(MemoryBufferRef MB); 27 28 // Parses the defsym expression. 29 void readDefsym(StringRef Name, MemoryBufferRef MB); 30 31 } // namespace elf 32 } // namespace lld 33 34 #endif 35