[lld] r248105 - Remove dead code.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 19 18:19:36 PDT 2015
Author: ruiu
Date: Sat Sep 19 20:19:36 2015
New Revision: 248105
URL: http://llvm.org/viewvc/llvm-project?rev=248105&view=rev
Log:
Remove dead code.
Modified:
lld/trunk/COFF/Chunks.h
lld/trunk/COFF/Symbols.h
Modified: lld/trunk/COFF/Chunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Chunks.h?rev=248105&r1=248104&r2=248105&view=diff
==============================================================================
--- lld/trunk/COFF/Chunks.h (original)
+++ lld/trunk/COFF/Chunks.h Sat Sep 19 20:19:36 2015
@@ -63,7 +63,6 @@ public:
// The writer sets and uses the addresses.
uint64_t getRVA() { return RVA; }
- uint64_t getOutputSectionOff() { return OutputSectionOff; }
uint32_t getAlign() { return Align; }
void setRVA(uint64_t V) { RVA = V; }
void setOutputSectionOff(uint64_t V) { OutputSectionOff = V; }
Modified: lld/trunk/COFF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Symbols.h?rev=248105&r1=248104&r2=248105&view=diff
==============================================================================
--- lld/trunk/COFF/Symbols.h (original)
+++ lld/trunk/COFF/Symbols.h Sat Sep 19 20:19:36 2015
@@ -175,10 +175,6 @@ public:
return S->kind() == DefinedRegularKind;
}
- uint64_t getOutputSectionOff() {
- return (*Data)->getOutputSectionOff() + Sym->Value;
- }
-
uint64_t getRVA() { return (*Data)->getRVA() + Sym->Value; }
bool isCOMDAT() { return IsCOMDAT; }
SectionChunk *getChunk() { return *Data; }
@@ -200,13 +196,10 @@ public:
}
uint64_t getRVA() { return Data->getRVA(); }
- uint64_t getOutputSectionOff() { return Data->getOutputSectionOff(); }
private:
friend SymbolBody;
-
uint64_t getSize() { return Sym->Value; }
-
CommonChunk *Data;
};
@@ -314,8 +307,6 @@ public:
}
uint64_t getRVA() { return Location->getRVA(); }
- uint64_t getOutputSectionOff() { return Location->getOutputSectionOff(); }
-
StringRef getDLLName() { return DLLName; }
StringRef getExternalName() { return ExternalName; }
void setLocation(Chunk *AddressTable) { Location = AddressTable; }
@@ -342,7 +333,6 @@ public:
}
uint64_t getRVA() { return Data->getRVA(); }
- uint64_t getOutputSectionOff() { return Data->getOutputSectionOff(); }
Chunk *getChunk() { return Data.get(); }
private:
@@ -364,8 +354,6 @@ public:
}
uint64_t getRVA() { return Data.getRVA(); }
- uint64_t getOutputSectionOff() { return Data.getOutputSectionOff(); }
-
Chunk *getChunk() { return &Data; }
private:
More information about the llvm-commits
mailing list