summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwp/llvm-dwp.cpp
diff options
context:
space:
mode:
authorJoel Jones <joelkevinjones@gmail.com>2016-07-25 17:18:28 +0000
committerJoel Jones <joelkevinjones@gmail.com>2016-07-25 17:18:28 +0000
commit373d7d30dd59a536f8d97745922db962bbdd1e59 (patch)
treedae823a6f7e055e22818e6a54e6f2faa190a8027 /llvm/tools/llvm-dwp/llvm-dwp.cpp
parentfe58327146b212433f9d015c1f6d60d076ad8475 (diff)
downloadbcm5719-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.cpp3
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);
OpenPOWER on IntegriCloud