llvm-6502/include/llvm/Object
Renato Golin c0104e4001 Refactor the RelocVisitor::visit method
This change replaces the brittle if/else chain of string comparisons
with a switch statement on the detected target triple, removing the
need for testing arbitrary architecture names returned from
getFileFormatName, whose primary purpose seems to be for display
(user-interface) purposes. The visitor now takes a reference to the
object file, rather than its arbitrary file format name to figure out
whether the file is a 32 or 64-bit object file and what the detected
target triple is.

A set of tests have been added to help show that the refactoring processes
relocations for the same targets as the original code.

Patch by Charlie Turner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218406 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-24 20:07:22 +00:00
..
Archive.h Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
Binary.h fix the gcc build 2014-08-19 20:06:25 +00:00
COFF.h MC: Add support for BigObj 2014-09-15 19:42:42 +00:00
COFFYAML.h Invert the MC -> Object dependency. 2014-07-03 02:01:39 +00:00
ELF.h Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created. 2014-08-27 05:25:25 +00:00
ELFObjectFile.h Refactor the RelocVisitor::visit method 2014-09-24 20:07:22 +00:00
ELFTypes.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ELFYAML.h Invert the MC -> Object dependency. 2014-07-03 02:01:39 +00:00
Error.h LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
IRObjectFile.h LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
MachO.h [llvm-objdump] for mach-o add -bind, -lazy-bind, and -weak-bind options 2014-09-16 01:41:51 +00:00
MachOUniversal.h unique_ptrify MachOUniversalBinary::create 2014-09-03 17:41:05 +00:00
ObjectFile.h Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
RelocVisitor.h Refactor the RelocVisitor::visit method 2014-09-24 20:07:22 +00:00
SymbolicFile.h Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00