Skip to content

Commit d3e792c

Browse files
[lld] Remove unused local variables (NFC) (#138470)
1 parent 1812a43 commit d3e792c

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

lld/COFF/DebugTypes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ static bool equalsPath(StringRef path1, StringRef path2) {
475475

476476
// Find by name an OBJ provided on the command line
477477
PrecompSource *UsePrecompSource::findObjByName(StringRef fileNameOnly) {
478-
SmallString<128> currentPath;
479478
for (auto kv : ctx.precompSourceMappings) {
480479
StringRef currentFileName = sys::path::filename(kv.second->file->getName(),
481480
sys::path::Style::windows);

lld/ELF/Driver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,8 +2319,7 @@ static void writeArchiveStats(Ctx &ctx) {
23192319

23202320
os << "members\textracted\tarchive\n";
23212321

2322-
SmallVector<StringRef, 0> archives;
2323-
DenseMap<CachedHashStringRef, unsigned> all, extracted;
2322+
DenseMap<CachedHashStringRef, unsigned> extracted;
23242323
for (ELFFileBase *file : ctx.objectFiles)
23252324
if (file->archiveName.size())
23262325
++extracted[CachedHashStringRef(file->archiveName)];

lld/wasm/WriterUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ static std::string toString(const llvm::wasm::WasmLimits &limits) {
7575
}
7676

7777
std::string toString(const WasmTableType &type) {
78-
SmallString<128> ret("");
7978
return "type=" + toString(static_cast<ValType>(type.ElemType)) +
8079
"; limits=[" + toString(type.Limits) + "]";
8180
}

0 commit comments

Comments
 (0)