llvm-6502/lib/DebugInfo
Renato Golin faac033f73 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@218388 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-24 17:00:42 +00:00
..
CMakeLists.txt
DIContext.cpp Use a reference instead of a pointer. 2014-07-31 20:19:36 +00:00
DWARFAbbreviationDeclaration.cpp
DWARFAbbreviationDeclaration.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFCompileUnit.cpp
DWARFCompileUnit.h Introduce the DWARFUnitSection abstraction. 2014-09-15 07:50:27 +00:00
DWARFContext.cpp Refactor the RelocVisitor::visit method 2014-09-24 17:00:42 +00:00
DWARFContext.h Introduce the DWARFUnitSection abstraction. 2014-09-15 07:50:27 +00:00
DWARFDebugAbbrev.cpp
DWARFDebugAbbrev.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFDebugAranges.cpp [DWARF parser] Fix broken address ranges construction. 2014-06-12 23:58:49 +00:00
DWARFDebugAranges.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFDebugArangeSet.cpp
DWARFDebugArangeSet.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFDebugFrame.cpp Revert "Introduce a string_ostream string builder facilty" 2014-06-26 22:52:05 +00:00
DWARFDebugFrame.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFDebugInfoEntry.cpp [dwarfdump] Dump full filenames as DW_AT_(decl|call)_file attribute values 2014-09-22 12:36:04 +00:00
DWARFDebugInfoEntry.h [dwarfdump] Dump full filenames as DW_AT_(decl|call)_file attribute values 2014-09-22 12:36:04 +00:00
DWARFDebugLine.cpp Turn local DWARFContext helpers getFileNameForUnit() and getFileLineInfoForCompileUnit() into full-blowm DWARFDebugLine::LineTable methods. 2014-09-19 15:11:51 +00:00
DWARFDebugLine.h Turn local DWARFContext helpers getFileNameForUnit() and getFileLineInfoForCompileUnit() into full-blowm DWARFDebugLine::LineTable methods. 2014-09-19 15:11:51 +00:00
DWARFDebugLoc.cpp
DWARFDebugLoc.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFDebugRangeList.cpp
DWARFDebugRangeList.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFFormValue.cpp Fix build faliure introduced by r217129. 2014-09-04 06:35:09 +00:00
DWARFRelocMap.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DWARFTypeUnit.cpp
DWARFTypeUnit.h Introduce the DWARFUnitSection abstraction. 2014-09-15 07:50:27 +00:00
DWARFUnit.cpp Introduce the DWARFUnitSection abstraction. 2014-09-15 07:50:27 +00:00
DWARFUnit.h Fix DWARFUnitSection::getUnitForOffset(). 2014-09-18 09:38:15 +00:00
LLVMBuild.txt
Makefile
module.modulemap