OSDN Git Service

Allow public Triple deduction from ObjectFiles.
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Tue, 19 Sep 2017 02:22:48 +0000 (02:22 +0000)
committerVlad Tsyrklevich <vlad@tsyrklevich.net>
Tue, 19 Sep 2017 02:22:48 +0000 (02:22 +0000)
commitb261c46c08d074099a2d75045c8d7687dadc58ac
treebdc5081bbe2a3183f56787622b283e527c8df9ee
parent1ef0d5a130b4bafad047b5e94e82de7d214f33d4
Allow public Triple deduction from ObjectFiles.

Move logic that allows for Triple deduction from an ObjectFile object
out of llvm-objdump.cpp into a public factory, found in the ObjectFile
class.

This should allow other tools in the future to use this logic without
reimplementation.

Patch by Mitch Phillips

Differential Revision: https://reviews.llvm.org/D37719

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313605 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ObjectFile.h
lib/Object/ObjectFile.cpp
tools/llvm-objdump/llvm-objdump.cpp