diff options
author | Zachary Turner <zturner@google.com> | 2018-09-12 22:57:03 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-09-12 22:57:03 +0000 |
commit | c43d55602fc99d8f048f1828f4a95dbadb2d6900 (patch) | |
tree | 165d9efe229ac7308523d04eb3abd8c08b72145d /llvm/lib/DebugInfo/PDB/Native | |
parent | aadfe4661d0ef95df53335e5fbeccad9e414a9a2 (diff) | |
download | bcm5719-llvm-c43d55602fc99d8f048f1828f4a95dbadb2d6900.tar.gz bcm5719-llvm-c43d55602fc99d8f048f1828f4a95dbadb2d6900.zip |
[PDB] Remove all clone() methods.
These are dead code and encourage poor usage patterns, so I'm
removing them. They weren't called anywhere anyway.
llvm-svn: 342093
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native')
7 files changed, 0 insertions, 28 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp index b278526771f..64ddf75c6d2 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp @@ -33,10 +33,6 @@ void NativeCompilandSymbol::dump(raw_ostream &OS, int Indent) const { Indent); } -std::unique_ptr<NativeRawSymbol> NativeCompilandSymbol::clone() const { - return llvm::make_unique<NativeCompilandSymbol>(Session, SymbolId, Module); -} - bool NativeCompilandSymbol::isEditAndContinueEnabled() const { return Module.hasECInfo(); } diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeEnumModules.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeEnumModules.cpp index 9dd66f3f0c4..6e4d56443a0 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeEnumModules.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeEnumModules.cpp @@ -40,9 +40,5 @@ std::unique_ptr<PDBSymbol> NativeEnumModules::getNext() { void NativeEnumModules::reset() { Index = 0; } -NativeEnumModules *NativeEnumModules::clone() const { - return new NativeEnumModules(Session, Index); -} - } } diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp index 2242106067e..c621e591efb 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp @@ -54,9 +54,5 @@ std::unique_ptr<PDBSymbol> NativeEnumTypes::getNext() { void NativeEnumTypes::reset() { Index = 0; } -NativeEnumTypes *NativeEnumTypes::clone() const { - return new NativeEnumTypes(Session, Matches, Kind); -} - } // namespace pdb } // namespace llvm diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp index 1fbdc2b49ec..97d20d4d3bb 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp @@ -34,10 +34,6 @@ NativeExeSymbol::NativeExeSymbol(NativeSession &Session, SymIndexId SymbolId) : NativeRawSymbol(Session, PDB_SymType::Exe, SymbolId), Dbi(getDbiStreamPtr(Session)) {} -std::unique_ptr<NativeRawSymbol> NativeExeSymbol::clone() const { - return llvm::make_unique<NativeExeSymbol>(Session, SymbolId); -} - std::unique_ptr<IPDBEnumSymbols> NativeExeSymbol::findChildren(PDB_SymType Type) const { switch (Type) { diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeTypeBuiltin.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeTypeBuiltin.cpp index 5a8400a5e4e..6031bba663a 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeTypeBuiltin.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeTypeBuiltin.cpp @@ -20,10 +20,6 @@ NativeTypeBuiltin::NativeTypeBuiltin(NativeSession &PDBSession, SymIndexId Id, NativeTypeBuiltin::~NativeTypeBuiltin() {} -std::unique_ptr<NativeRawSymbol> NativeTypeBuiltin::clone() const { - return llvm::make_unique<NativeTypeBuiltin>(Session, SymbolId, Type, Length); -} - void NativeTypeBuiltin::dump(raw_ostream &OS, int Indent) const { } diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp index ddb874b0d14..6c1d4ccd09f 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp @@ -59,10 +59,6 @@ void NativeTypeEnum::dump(raw_ostream &OS, int Indent) const { dumpSymbolField(OS, "volatileType", isVolatileType(), Indent); } -std::unique_ptr<NativeRawSymbol> NativeTypeEnum::clone() const { - return llvm::make_unique<NativeTypeEnum>(Session, SymbolId, CV); -} - std::unique_ptr<IPDBEnumSymbols> NativeTypeEnum::findChildren(PDB_SymType Type) const { switch (Type) { diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeTypePointer.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeTypePointer.cpp index 0a648c7219d..3e5140c4bd6 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeTypePointer.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeTypePointer.cpp @@ -49,10 +49,6 @@ void NativeTypePointer::dump(raw_ostream &OS, int Indent) const { dumpSymbolField(OS, "volatileType", isVolatileType(), Indent); } -std::unique_ptr<NativeRawSymbol> NativeTypePointer::clone() const { - return llvm::make_unique<NativeTypePointer>(Session, SymbolId, Record); -} - bool NativeTypePointer::isConstType() const { return false; } uint64_t NativeTypePointer::getLength() const { return Record.getSize(); } |