[llvm] r228773 - Fix some warnings due to -Wcovered-switch-default.
Zachary Turner
zturner at google.com
Tue Feb 10 16:13:39 PST 2015
Author: zturner
Date: Tue Feb 10 18:13:39 2015
New Revision: 228773
URL: http://llvm.org/viewvc/llvm-project?rev=228773&view=rev
Log:
Fix some warnings due to -Wcovered-switch-default.
Modified:
llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp
llvm/trunk/lib/DebugInfo/PDB/PDBSymbolFunc.cpp
Modified: llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp?rev=228773&r1=228772&r2=228773&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp Tue Feb 10 18:13:39 2015
@@ -107,8 +107,6 @@ raw_ostream &llvm::operator<<(raw_ostrea
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_ThunkOrdinal, TrampIncremental, OS)
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_ThunkOrdinal, UnknownLoad, OS)
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_ThunkOrdinal, Vcall, OS)
- default:
- OS << "Unknown";
}
return OS;
}
@@ -118,8 +116,6 @@ raw_ostream &llvm::operator<<(raw_ostrea
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Checksum, None, OS)
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Checksum, MD5, OS)
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Checksum, SHA1, OS)
- default:
- OS << "Unknown";
}
return OS;
}
@@ -143,8 +139,6 @@ raw_ostream &llvm::operator<<(raw_ostrea
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Lang, JScript, OS)
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Lang, MSIL, OS)
CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Lang, HLSL, OS)
- default:
- OS << "Unknown";
}
return OS;
}
Modified: llvm/trunk/lib/DebugInfo/PDB/PDBSymbolFunc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/PDBSymbolFunc.cpp?rev=228773&r1=228772&r2=228773&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/PDBSymbolFunc.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/PDBSymbolFunc.cpp Tue Feb 10 18:13:39 2015
@@ -24,7 +24,6 @@ PDBSymbolFunc::PDBSymbolFunc(const IPDBS
void PDBSymbolFunc::dump(raw_ostream &OS, int Indent,
PDB_DumpLevel Level) const {
- bool doFullDump = false;
if (Level == PDB_DumpLevel::Compact) {
uint32_t FuncStart = getRelativeVirtualAddress();
uint32_t FuncEnd = FuncStart + getLength();
@@ -55,7 +54,6 @@ void PDBSymbolFunc::dump(raw_ostream &OS
OS << "(" << (int)Reg << ")";
} else {
OS << "(FPO)";
- doFullDump = true;
}
OS << " " << getName() << "\n";
}
More information about the llvm-commits
mailing list