Add a MCObjectFormat class so that code common to all targets that use a
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 16 Oct 2010 18:23:53 +0000 (18:23 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 16 Oct 2010 18:23:53 +0000 (18:23 +0000)
commitf230df9af4012f9510de664b6d62b128e26a5861
tree459a596099278874a963dabafad21e27da5046eb
parentcb2caf738023c0a03f5df1b909431129a16e2c54
Add a MCObjectFormat class so that code common to all targets that use a
single object format can be shared.

This also adds support for

mov zed+(bar-foo), %eax

on ELF and COFF targets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116675 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/MC/MCExpr.h
include/llvm/MC/MCObjectFormat.h [new file with mode: 0644]
include/llvm/Target/TargetAsmBackend.h
lib/MC/CMakeLists.txt
lib/MC/ELFObjectWriter.cpp
lib/MC/MCExpr.cpp
lib/MC/MCObjectFormat.cpp [new file with mode: 0644]
lib/MC/TargetAsmBackend.cpp
lib/Target/ARM/ARMAsmBackend.cpp
lib/Target/X86/X86AsmBackend.cpp
test/MC/ELF/diff.s [new file with mode: 0644]
test/MC/ELF/diff2.s [new file with mode: 0644]