[PowerPC] Support @h modifier
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 21 Jun 2013 14:42:49 +0000 (14:42 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 21 Jun 2013 14:42:49 +0000 (14:42 +0000)
commitd2849572463da994c685b3bd7a60d5a7566c01e3
treef1fd6fa0bc1ebc4a4d27ece33ef57b3533383df0
parent92cfa61c50d01307d658753f8d47f4e8555a6fa9
[PowerPC] Support @h modifier

This adds necessary infrastructure to support the @h modifier.
Note that all required relocation types were already present
(and unused).

This patch provides support for using @h in the assembler;
it would also be possible to now use this feature in code
generated by the compiler, but this is not done yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184548 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCExpr.h
lib/MC/MCExpr.cpp
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
test/MC/PowerPC/ppc64-fixup-apply.s
test/MC/PowerPC/ppc64-fixups.s