mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-03 14:22:23 +00:00
Fix msvc "switch statement contains 'default' but no 'case' labels" warning. NFC.
Stripped out the switch statement, but kept case labels as comments for future reference.
This commit is contained in:
parent
1041e8b886
commit
c9797cf98b
@ -352,31 +352,28 @@ void jitLink_ELF_x86_64(std::unique_ptr<JITLinkContext> Ctx) {
|
||||
}
|
||||
|
||||
StringRef getELFX86RelocationKindName(Edge::Kind R) {
|
||||
switch (R) {
|
||||
// case R_AMD64_NONE:
|
||||
// return "None";
|
||||
// case R_AMD64_PC32:
|
||||
// case R_AMD64_GOT32:
|
||||
// caseR_AMD64_PLT32,
|
||||
// R_AMD64_COPY,
|
||||
// R_AMD64_GLOB_DAT,
|
||||
// R_AMD64_JUMP_SLOT,
|
||||
// R_AMD64_RELATIVE,
|
||||
// R_AMD64_GOTPCREL,
|
||||
// R_AMD64_32,
|
||||
// R_AMD64_32S,
|
||||
// R_AMD64_16,
|
||||
// R_AMD64_PC16,
|
||||
// R_AMD64_8,
|
||||
// R_AMD64_PC8,
|
||||
// R_AMD64_PC64,
|
||||
// R_AMD64_GOTOFF64,
|
||||
// R_AMD64_GOTPC32,
|
||||
// R_AMD64_SIZE32,
|
||||
// R_AMD64_SIZE64
|
||||
default:
|
||||
return getGenericEdgeKindName(static_cast<Edge::Kind>(R));
|
||||
}
|
||||
// case R_AMD64_NONE:
|
||||
// return "None";
|
||||
// case R_AMD64_PC32:
|
||||
// case R_AMD64_GOT32:
|
||||
// case R_AMD64_PLT32,
|
||||
// R_AMD64_COPY,
|
||||
// R_AMD64_GLOB_DAT,
|
||||
// R_AMD64_JUMP_SLOT,
|
||||
// R_AMD64_RELATIVE,
|
||||
// R_AMD64_GOTPCREL,
|
||||
// R_AMD64_32,
|
||||
// R_AMD64_32S,
|
||||
// R_AMD64_16,
|
||||
// R_AMD64_PC16,
|
||||
// R_AMD64_8,
|
||||
// R_AMD64_PC8,
|
||||
// R_AMD64_PC64,
|
||||
// R_AMD64_GOTOFF64,
|
||||
// R_AMD64_GOTPC32,
|
||||
// R_AMD64_SIZE32,
|
||||
// R_AMD64_SIZE64
|
||||
return getGenericEdgeKindName(static_cast<Edge::Kind>(R));
|
||||
}
|
||||
} // end namespace jitlink
|
||||
} // end namespace llvm
|
||||
|
Loading…
Reference in New Issue
Block a user