diff options
author | Joel Jones <joelkevinjones@gmail.com> | 2016-07-25 17:18:28 +0000 |
---|---|---|
committer | Joel Jones <joelkevinjones@gmail.com> | 2016-07-25 17:18:28 +0000 |
commit | 373d7d30dd59a536f8d97745922db962bbdd1e59 (patch) | |
tree | dae823a6f7e055e22818e6a54e6f2faa190a8027 /llvm/tools/llvm-dwp/llvm-dwp.cpp | |
parent | fe58327146b212433f9d015c1f6d60d076ad8475 (diff) | |
download | bcm5719-llvm-373d7d30dd59a536f8d97745922db962bbdd1e59.tar.gz bcm5719-llvm-373d7d30dd59a536f8d97745922db962bbdd1e59.zip |
MC] Provide an MCTargetOptions to implementors of MCAsmBackendCtorTy, NFC
Some targets, notably AArch64 for ILP32, have different relocation encodings
based upon the ABI. This is an enabling change, so a future patch can use the
ABIName from MCTargetOptions to chose which relocations to use. Tested using
check-llvm.
The corresponding change to clang is in: http://reviews.llvm.org/D16538
Patch by: Joel Jones
Differential Revision: https://reviews.llvm.org/D16213
llvm-svn: 276654
Diffstat (limited to 'llvm/tools/llvm-dwp/llvm-dwp.cpp')
-rw-r--r-- | llvm/tools/llvm-dwp/llvm-dwp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp index 7bd3d3f3f4d..57cdb522d5b 100644 --- a/llvm/tools/llvm-dwp/llvm-dwp.cpp +++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp @@ -643,7 +643,8 @@ int main(int argc, char **argv) { MCContext MC(MAI.get(), MRI.get(), &MOFI); MOFI.InitMCObjectFileInfo(TheTriple, /*PIC*/ false, CodeModel::Default, MC); - auto MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, ""); + MCTargetOptions Options; + auto MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, "", Options); if (!MAB) return error("no asm backend for target " + TripleName, Context); |