diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-12-21 08:40:09 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-12-21 08:40:09 +0000 |
| commit | 4f2f50dc648028fb1e464ee94e5e040cccfc0cea (patch) | |
| tree | add814e03ae7dc487b60a46b17b424b6f9fbac7b /lld/ELF/SyntheticSections.cpp | |
| parent | 3b95157090110e8e9f41903ec2d04db372470b03 (diff) | |
| download | bcm5719-llvm-4f2f50dc648028fb1e464ee94e5e040cccfc0cea.tar.gz bcm5719-llvm-4f2f50dc648028fb1e464ee94e5e040cccfc0cea.zip | |
De-template DefinedSynthetic.
DefinedSynthetic is not created for a real ELF object, so it doesn't
have to be a template function. It has a virtual st_value, which is
either 32 bit or 64 bit, but we can simply use 64 bit.
llvm-svn: 290241
Diffstat (limited to 'lld/ELF/SyntheticSections.cpp')
| -rw-r--r-- | lld/ELF/SyntheticSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 2dbe749029c..3c8a439ba30 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1192,7 +1192,7 @@ const OutputSectionBase * SymbolTableSection<ELFT>::getOutputSection(SymbolBody *Sym) { switch (Sym->kind()) { case SymbolBody::DefinedSyntheticKind: - return cast<DefinedSynthetic<ELFT>>(Sym)->Section; + return cast<DefinedSynthetic>(Sym)->Section; case SymbolBody::DefinedRegularKind: { auto &D = cast<DefinedRegular<ELFT>>(*Sym); if (D.Section) |

