From d87a021c79e251fcdf592e01dc7fb9606318d4f1 Mon Sep 17 00:00:00 2001 From: Shankar Easwaran Date: Sun, 24 Nov 2013 23:12:36 +0000 Subject: [InputGraph][Gnu] Add LinkerScript support. This adds LinkerScript support by creating a type Script which is of type FileNode in the InputGraph. Once the LinkerScript Parser converts the LinkerScript into a sequence of command, the commands are handled by the equivalent LinkerScript node for the current Flavor/Target. For ELF, a ELFGNULdScript gets created which converts the commands to ELF nodes and ELF control nodes(ELFGroup for handling Group nodes). Since the Inputfile type has to be determined in the Driver, the Driver needs to determine the complete path of the file that needs to be processed by the Linker. Due to this, few tests have been removed since the Driver uses paths that doesnot exist. llvm-svn: 195583 --- lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp') diff --git a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp index 10f91380467..1a3965073bd 100644 --- a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp +++ b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp @@ -18,7 +18,6 @@ #include "lld/Passes/LayoutPass.h" #include "lld/Passes/RoundTripNativePass.h" #include "lld/Passes/RoundTripYAMLPass.h" -#include "lld/ReaderWriter/ReaderLinkerScript.h" #include "llvm/ADT/Triple.h" #include "llvm/Support/ELF.h" @@ -83,7 +82,6 @@ StringRef ELFLinkingContext::entrySymbolName() const { bool ELFLinkingContext::validateImpl(raw_ostream &diagnostics) { _elfReader = createReaderELF(*this); - _linkerScriptReader.reset(new ReaderLinkerScript(*this)); switch (outputFileType()) { case LinkingContext::OutputFileType::YAML: _writer = createWriterYAML(*this); -- cgit v1.2.3