diff options
author | Anton Korobeynikov <anton@korobeynikov.info> | 2018-11-15 12:29:43 +0000 |
---|---|---|
committer | Anton Korobeynikov <anton@korobeynikov.info> | 2018-11-15 12:29:43 +0000 |
commit | 49045c6a0d2cfd7fe844067105aef21da2286f8c (patch) | |
tree | 35813f68c708fe8613752e006c24a39ad01bff73 /llvm/lib/Object/ELF.cpp | |
parent | 5e7486f518fe796227ebdac12c558f34c41aef32 (diff) | |
download | bcm5719-llvm-49045c6a0d2cfd7fe844067105aef21da2286f8c.tar.gz bcm5719-llvm-49045c6a0d2cfd7fe844067105aef21da2286f8c.zip |
[MSP430] Add MC layer
Reapply r346374 with the fixes for modules build.
Original summary:
This change implements assembler parser, code emitter, ELF object writer
and disassembler for the MSP430 ISA. Also, more instruction forms are added
to the target description.
Patch by Michael Skvortsov!
llvm-svn: 346948
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
-rw-r--r-- | llvm/lib/Object/ELF.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp index da56d97c4bc..2edab0b1373 100644 --- a/llvm/lib/Object/ELF.cpp +++ b/llvm/lib/Object/ELF.cpp @@ -139,6 +139,13 @@ StringRef llvm::object::getELFRelocationTypeName(uint32_t Machine, break; } break; + case ELF::EM_MSP430: + switch (Type) { +#include "llvm/BinaryFormat/ELFRelocs/MSP430.def" + default: + break; + } + break; default: break; } |