diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:33:45 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:33:45 +0000 |
| commit | 4ea16835ba66f2240d050ffcaee44cee6c97cab9 (patch) | |
| tree | d2f3d66f3352a3ec22362de0b7a5c1366fc25df8 /ELF/Arch/PPC64.cpp | |
| parent | 15f7a1a3796209b21af2817fdf11ca9932165c70 (diff) | |
Notes
Diffstat (limited to 'ELF/Arch/PPC64.cpp')
| -rw-r--r-- | ELF/Arch/PPC64.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ELF/Arch/PPC64.cpp b/ELF/Arch/PPC64.cpp index eb1e917d5790..bf414d75bec7 100644 --- a/ELF/Arch/PPC64.cpp +++ b/ELF/Arch/PPC64.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "Error.h" -#include "Memory.h" #include "Symbols.h" #include "SyntheticSections.h" #include "Target.h" @@ -212,4 +211,7 @@ void PPC64::relocateOne(uint8_t *Loc, uint32_t Type, uint64_t Val) const { } } -TargetInfo *elf::createPPC64TargetInfo() { return make<PPC64>(); } +TargetInfo *elf::getPPC64TargetInfo() { + static PPC64 Target; + return &Target; +} |
