llvm-6502/lib
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
..
Analysis Fix assertion in LICM doFinalization() 2014-09-24 16:48:31 +00:00
AsmParser
Bitcode Do not destroy external linkage when deleting function body 2014-09-23 12:54:19 +00:00
CodeGen Clear PreferredExtendType for in each function-specific state FunctionLoweringInfo. 2014-09-24 03:22:56 +00:00
DebugInfo Refactor the RelocVisitor::visit method 2014-09-24 20:07:22 +00:00
ExecutionEngine [MCJIT] Fix some more RuntimeDyld debugging output format specifiers. 2014-09-23 19:20:57 +00:00
IR DIBuilder: Delete dead code, NFC 2014-09-19 23:17:58 +00:00
IRReader
LineEditor
Linker
LTO
MC Replace a hand-written suffix compare with std::lexicographical_compare. 2014-09-24 13:19:28 +00:00
Object
Option
ProfileData llvm-cov: Allow creating CoverageMappings from filenames 2014-09-20 17:19:52 +00:00
Support Adding #ifdef around TermColorMutex based on feedback from Craig Topper. 2014-09-24 18:35:58 +00:00
TableGen
Target [x86] Factor out the logic to generically decombose a vector shuffle 2014-09-24 18:20:09 +00:00
Transforms Fix assertion in LICM doFinalization() 2014-09-24 16:48:31 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile