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.
Paths
| Differential D37719
Allow public Triple deduction from ObjectFiles. ClosedPublic Authored by hctim on Sep 11 2017, 3:51 PM.
Details Summary 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.
Diff Detail
Event TimelineComment Actions Before considering this patch I would first like to see another client of the function that you are adding. This revision now requires changes to proceed.Sep 11 2017, 6:36 PM hctim edited edge metadata. Comment ActionsMade ObjectFile::makeTriple() non-virtual. Removed braces around single line if-statement. Closed by commit rL313605: Allow public Triple deduction from ObjectFiles. (authored by vlad.tsyrklevich). · Explain WhySep 18 2017, 7:24 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 115776 llvm/trunk/include/llvm/Object/ObjectFile.h
llvm/trunk/lib/Object/ObjectFile.cpp
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
|