diff options
author | Alexander Shaposhnikov <shal1t712@gmail.com> | 2018-10-24 22:49:06 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <shal1t712@gmail.com> | 2018-10-24 22:49:06 +0000 |
commit | 654d3a9577d9782b03edaff7be369fa13e9ba14b (patch) | |
tree | 9e0b9e3c233edfc475172a2dc626f8820ade353e /llvm/tools/llvm-objcopy/Object.h | |
parent | ad4d018202d7f967c56b6adcfc283f7273b9d356 (diff) | |
download | bcm5719-llvm-654d3a9577d9782b03edaff7be369fa13e9ba14b.tar.gz bcm5719-llvm-654d3a9577d9782b03edaff7be369fa13e9ba14b.zip |
[llvm-objcopy] Introduce dispatch mechanism based on the input
In this diff we introduce dispatch mechanism based on
the type of the input (archive, object file, raw binary)
and the format (coff, elf, macho).
We also move the ELF-specific code into the namespace llvm::objcopy::elf.
Test plan: make check-all
Differential revision: https://reviews.llvm.org/D53311
llvm-svn: 345217
Diffstat (limited to 'llvm/tools/llvm-objcopy/Object.h')
-rw-r--r-- | llvm/tools/llvm-objcopy/Object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/Object.h b/llvm/tools/llvm-objcopy/Object.h index 1019391fa89..38ef21ffec9 100644 --- a/llvm/tools/llvm-objcopy/Object.h +++ b/llvm/tools/llvm-objcopy/Object.h @@ -30,6 +30,7 @@ namespace llvm { enum class DebugCompressionType; namespace objcopy { +namespace elf { class SectionBase; class Section; @@ -765,6 +766,8 @@ public: return *Segments.back(); } }; + +} // end namespace elf } // end namespace objcopy } // end namespace llvm |