summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/CoreLinkingContext.cpp
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2013-10-07 02:47:09 +0000
committerShankar Easwaran <shankare@codeaurora.org>2013-10-07 02:47:09 +0000
commita96f3a3da45cf6f37998df918f3c90ec9e6e2fec (patch)
tree8c69bcec8537cf344963c094feb68de6664f63de /lld/lib/ReaderWriter/CoreLinkingContext.cpp
parent4f44079a2ca1467d0d6a0bb053a338a6b6e795d6 (diff)
downloadbcm5719-llvm-a96f3a3da45cf6f37998df918f3c90ec9e6e2fec.tar.gz
bcm5719-llvm-a96f3a3da45cf6f37998df918f3c90ec9e6e2fec.zip
[lld][InputGraph] Change the Resolver to use inputGraph
Changes :- a) Functionality in InputGraph to insert Input elements at any position b) Functionality in the Resolver to use nextFile c) Move the functionality of assigning file ordinals to InputGraph d) Changes all inputs to MemoryBuffers e) Remove LinkerInput, InputFiles, ReaderArchive llvm-svn: 192081
Diffstat (limited to 'lld/lib/ReaderWriter/CoreLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/CoreLinkingContext.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lld/lib/ReaderWriter/CoreLinkingContext.cpp b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
index fdc56ec7588..bc9a009673d 100644
--- a/lld/lib/ReaderWriter/CoreLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
@@ -272,6 +272,7 @@ private:
CoreLinkingContext::CoreLinkingContext() {}
bool CoreLinkingContext::validateImpl(raw_ostream &diagnostics) {
+ _reader = createReaderYAML(*this);
return true;
}
@@ -288,13 +289,6 @@ void CoreLinkingContext::addPasses(PassManager &pm) const {
}
}
-error_code CoreLinkingContext::parseFile(LinkerInput &input,
- std::vector<std::unique_ptr<File>> &result) const {
- if (!_reader)
- _reader = createReaderYAML(*this);
- return _reader->parseFile(input, result);
-}
-
Writer &CoreLinkingContext::writer() const {
if (!_writer)
_writer = createWriterYAML(*this);
OpenPOWER on IntegriCloud