diff options
author | Rui Ueyama <ruiu@google.com> | 2014-05-02 23:43:59 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-05-02 23:43:59 +0000 |
commit | d50ed14d92318b6054c2b799bbbfb237e6692ad6 (patch) | |
tree | f982045ccb625ed2d642837f1043a3e96df5f370 /lld/lib/ReaderWriter/YAML | |
parent | a1342406f2c5f24a0c510d5e158cce57e8987ae5 (diff) | |
download | bcm5719-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/YAML')
-rw-r--r-- | lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp index e9bfc1a8233..dbc50873f75 100644 --- a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp +++ b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp @@ -892,7 +892,6 @@ template <> struct MappingTraits<const lld::DefinedAtom *> { DeadStripKind deadStrip() const override { return _deadStrip; } DynamicExport dynamicExport() const override { return _dynamicExport; } ContentPermissions permissions() const override { return _permissions; } - bool isAlias() const override { return false; } bool isGroupChild() const { return _isGroupChild; } ArrayRef<uint8_t> rawContent() const override { if (!occupiesDiskSpace()) |