mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
MCTargetOptions reside on the TargetMachine that we always have via
TargetOptions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229917 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6456a560c
commit
a4a7b848d2
@ -148,11 +148,8 @@ void AsmPrinter::EmitInlineAsm(StringRef Str, const MDNode *LocMDNode,
|
||||
// emitInlineAsmEnd().
|
||||
MCSubtargetInfo STIOrig = *STI;
|
||||
|
||||
MCTargetOptions MCOptions;
|
||||
if (MF)
|
||||
MCOptions = MF->getTarget().Options.MCOptions;
|
||||
std::unique_ptr<MCTargetAsmParser> TAP(
|
||||
TM.getTarget().createMCAsmParser(*STI, *Parser, *MII, MCOptions));
|
||||
std::unique_ptr<MCTargetAsmParser> TAP(TM.getTarget().createMCAsmParser(
|
||||
*STI, *Parser, *MII, TM.Options.MCOptions));
|
||||
if (!TAP)
|
||||
report_fatal_error("Inline asm not supported by this streamer because"
|
||||
" we don't have an asm parser for this target\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user