diff options
author | Joel Jones <joelkevinjones@gmail.com> | 2016-07-25 17:18:44 +0000 |
---|---|---|
committer | Joel Jones <joelkevinjones@gmail.com> | 2016-07-25 17:18:44 +0000 |
commit | 837327528c4ea21b29b7376b5f206bd9e50a6944 (patch) | |
tree | 7fda88603b0b534d3bce645af53103e24467f562 /tools | |
parent | b17dedc4e2f3828d043ebce3032d820d454ab5d8 (diff) | |
download | clang-837327528c4ea21b29b7376b5f206bd9e50a6944.tar.gz |
[cc1as] Add MCTargetOptions argument to createAsmBackend
Allow an assembler backend to get ABI options. This is to match the changes
to http://reviews.llvm.org/D16213.
Tested with "make check-clang"
Patch by: Joel Jones
Differential Revision: https://reviews.llvm.org/D16538
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/driver/cc1as_main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 2d17be99e2..6b818a94d5 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -379,7 +379,8 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, MCAsmBackend *MAB = nullptr; if (Opts.ShowEncoding) { CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx); - MAB = TheTarget->createMCAsmBackend(*MRI, Opts.Triple, Opts.CPU); + MCTargetOptions Options; + MAB = TheTarget->createMCAsmBackend(*MRI, Opts.Triple, Opts.CPU, Options); } auto FOut = llvm::make_unique<formatted_raw_ostream>(*Out); Str.reset(TheTarget->createAsmStreamer( @@ -396,8 +397,9 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, } MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx); + MCTargetOptions Options; MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*MRI, Opts.Triple, - Opts.CPU); + Opts.CPU, Options); Triple T(Opts.Triple); Str.reset(TheTarget->createMCObjectStreamer( T, Ctx, *MAB, *Out, CE, *STI, Opts.RelaxAll, |