diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-11-03 21:21:47 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-11-03 21:21:47 +0000 |
| commit | f52496e1e012c2448f1c021d41664fa70315cb90 (patch) | |
| tree | 2822982069fff9e5c09f6df88079afadbd2bc980 /lld/COFF/Chunks.cpp | |
| parent | e6b53dad4239ff9f651e46fa6cbfba48a299cf9b (diff) | |
| download | bcm5719-llvm-f52496e1e012c2448f1c021d41664fa70315cb90.tar.gz bcm5719-llvm-f52496e1e012c2448f1c021d41664fa70315cb90.zip | |
Rename SymbolBody -> Symbol
Now that we have only SymbolBody as the symbol class. So, "SymbolBody"
is a bit strange name now. This is a mechanical change generated by
perl -i -pe s/SymbolBody/Symbol/g $(git grep -l SymbolBody lld/ELF lld/COFF)
nd clang-format-diff.
Differential Revision: https://reviews.llvm.org/D39459
llvm-svn: 317370
Diffstat (limited to 'lld/COFF/Chunks.cpp')
| -rw-r--r-- | lld/COFF/Chunks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp index 00cda81e72c..149343a3a7c 100644 --- a/lld/COFF/Chunks.cpp +++ b/lld/COFF/Chunks.cpp @@ -251,7 +251,7 @@ void SectionChunk::writeTo(uint8_t *Buf) const { // Get the output section of the symbol for this relocation. The output // section is needed to compute SECREL and SECTION relocations used in debug // info. - SymbolBody *Body = File->getSymbolBody(Rel.SymbolTableIndex); + Symbol *Body = File->getSymbol(Rel.SymbolTableIndex); Defined *Sym = cast<Defined>(Body); Chunk *C = Sym->getChunk(); OutputSection *OS = C ? C->getOutputSection() : nullptr; @@ -328,7 +328,7 @@ void SectionChunk::getBaserels(std::vector<Baserel> *Res) { uint8_t Ty = getBaserelType(Rel); if (Ty == IMAGE_REL_BASED_ABSOLUTE) continue; - SymbolBody *Body = File->getSymbolBody(Rel.SymbolTableIndex); + Symbol *Body = File->getSymbol(Rel.SymbolTableIndex); if (isa<DefinedAbsolute>(Body)) continue; Res->emplace_back(RVA + Rel.VirtualAddress, Ty); |

