summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-04-01 21:55:36 +0000
committerRui Ueyama <ruiu@google.com>2014-04-01 21:55:36 +0000
commit5632e26d364bb3639a50ae1bcbda117862bf44c0 (patch)
treef35f78640330ba94bdb5d49713c64ae324e54592 /lld/lib/Driver/Driver.cpp
parentc744492f7c19ef6baeb9b60dc2ad7ff9cc2051f5 (diff)
downloadbcm5719-llvm-5632e26d364bb3639a50ae1bcbda117862bf44c0.tar.gz
bcm5719-llvm-5632e26d364bb3639a50ae1bcbda117862bf44c0.zip
Greatly simplify InputGraph.
InputGraph has too many knobs and controls that are not being used. This patch is to remove dead code, unused features and a class. There are two things that worth noting, besides simple dead code removal: 1. ControlNode class is removed. We had it as the base class of Group class, but it provides no functionality particularly meaningful. We now have shallower class hierarchy that is easier to understand. 2. InputGraph provides a feature to replace a node with its internal data. It is being used to "expand" some type of node, such as a Linker Script node, with its actual files. We used to have two options when replacing it -- ExpandOnly or ExpandAndReplace. ExpandOnly was to expand it but not remove the node from the tree. There is no use of that option in the code, so it was a dead feature. Differential Revision: http://llvm-reviews.chandlerc.com/D3252 llvm-svn: 205363
Diffstat (limited to 'lld/lib/Driver/Driver.cpp')
-rw-r--r--lld/lib/Driver/Driver.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp
index cb2ec4d3f96..0f3f1bfe689 100644
--- a/lld/lib/Driver/Driver.cpp
+++ b/lld/lib/Driver/Driver.cpp
@@ -55,9 +55,6 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) {
TaskGroup tg;
std::mutex diagnosticsMutex;
for (auto &ie : inputGraph.inputElements()) {
- // Skip Hidden elements.
- if (ie->isHidden())
- continue;
tg.spawn([&] {
// Writes to the same output stream is not guaranteed to be thread-safe.
// We buffer the diagnostics output to a separate string-backed output
OpenPOWER on IntegriCloud