mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-23 04:28:40 +00:00
Fix some warnings due to -Wcovered-switch-default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab884fa603
commit
c6b4bedeb6
@ -107,8 +107,6 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_ThunkOrdinal &Thunk) {
|
||||
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_ostream &OS, const PDB_Checksum &Checksum) {
|
||||
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_ostream &OS, const PDB_Lang &Lang) {
|
||||
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;
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ PDBSymbolFunc::PDBSymbolFunc(const IPDBSession &PDBSession,
|
||||
|
||||
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, int Indent,
|
||||
OS << "(" << (int)Reg << ")";
|
||||
} else {
|
||||
OS << "(FPO)";
|
||||
doFullDump = true;
|
||||
}
|
||||
OS << " " << getName() << "\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user