summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/CoreLinkingContext.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-05-02 23:43:59 +0000
committerRui Ueyama <ruiu@google.com>2014-05-02 23:43:59 +0000
commitd50ed14d92318b6054c2b799bbbfb237e6692ad6 (patch)
treef982045ccb625ed2d642837f1043a3e96df5f370 /lld/lib/ReaderWriter/CoreLinkingContext.cpp
parenta1342406f2c5f24a0c510d5e158cce57e8987ae5 (diff)
downloadbcm5719-llvm-d50ed14d92318b6054c2b799bbbfb237e6692ad6.tar.gz
bcm5719-llvm-d50ed14d92318b6054c2b799bbbfb237e6692ad6.zip
Remove dead code.
isAlias always returns false and no one is using it. It was originally added Atom to query if an atom is an alias for another atom, assuming that alias atoms are different from normal atoms. We now support atom aliasing, but the way that's implemented is in a different way than what isAlias assumed. An alias atom is just a regular defined atom with no content, and it has a layout- before edge to alias-to atom so that they are layed out at the same location in the result. So this is dead code, and it doesn't make much sense to keep it. llvm-svn: 207884
Diffstat (limited to 'lld/lib/ReaderWriter/CoreLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/CoreLinkingContext.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lld/lib/ReaderWriter/CoreLinkingContext.cpp b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
index 0ee4b51af92..36ec7a2ed5c 100644
--- a/lld/lib/ReaderWriter/CoreLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
@@ -63,8 +63,6 @@ public:
return DefinedAtom::permR_X;
}
- bool isAlias() const override { return false; }
-
ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(); }
reference_iterator begin() const override {
@@ -128,8 +126,6 @@ public:
return DefinedAtom::permRW_;
}
- bool isAlias() const override { return false; }
-
ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(); }
reference_iterator begin() const override {
@@ -273,4 +269,3 @@ void CoreLinkingContext::addPasses(PassManager &pm) {
}
Writer &CoreLinkingContext::writer() const { return *_writer; }
-
OpenPOWER on IntegriCloud