diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-11-19 23:26:41 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-11-19 23:26:41 +0000 |
| commit | f7dfb2e250b3b0b4a3be39141bbd5cdf3582972f (patch) | |
| tree | 84813f3225c272508811cc35988e910da6229bba /lld/ELF/SymbolListFile.cpp | |
| parent | 8f475567966a5782afbbe84e7b88b8502e495026 (diff) | |
| download | bcm5719-llvm-f7dfb2e250b3b0b4a3be39141bbd5cdf3582972f.tar.gz bcm5719-llvm-f7dfb2e250b3b0b4a3be39141bbd5cdf3582972f.zip | |
Remove a file that is too short to be an independent file.
We have a .cpp and a .h for parseDynamicList(). This patch
moves the function to DriverUtil.cpp.
llvm-svn: 287468
Diffstat (limited to 'lld/ELF/SymbolListFile.cpp')
| -rw-r--r-- | lld/ELF/SymbolListFile.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lld/ELF/SymbolListFile.cpp b/lld/ELF/SymbolListFile.cpp deleted file mode 100644 index 867dceb673d..00000000000 --- a/lld/ELF/SymbolListFile.cpp +++ /dev/null @@ -1,58 +0,0 @@ -//===- SymbolListFile.cpp -------------------------------------------------===// -// -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file contains the parser/evaluator of the linker script. -// It does not construct an AST but consume linker script directives directly. -// Results are written to Driver or Config object. -// -//===----------------------------------------------------------------------===// - -#include "SymbolListFile.h" -#include "Config.h" -#include "ScriptParser.h" -#include "Strings.h" -#include "llvm/Support/MemoryBuffer.h" - -using namespace llvm; -using namespace llvm::ELF; - -using namespace lld; -using namespace lld::elf; - -// Parse the --dynamic-list argument. A dynamic list is in the form -// -// { symbol1; symbol2; [...]; symbolN }; -// -// Multiple groups can be defined in the same file, and they are merged -// into a single group. - -namespace { -class DynamicListParser final : public ScriptParserBase { -public: - DynamicListParser(StringRef S) : ScriptParserBase(S) {} - void run(); -}; -} // end anonymous namespace - -void DynamicListParser::run() { - while (!atEOF()) { - expect("{"); - while (!Error) { - Config->DynamicList.push_back(unquote(next())); - expect(";"); - if (consume("}")) - break; - } - expect(";"); - } -} - -void elf::parseDynamicList(MemoryBufferRef MB) { - DynamicListParser(MB.getBuffer()).run(); -} |

