From 36873fb768dbedeb3e9167117d3bb63b3720d214 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 17 Nov 2021 15:57:31 -0500 Subject: [clang] Try to fix test more after ae98182cf7341181e We need to use the td-based marshalling instead of doing this manually, else the setting gets lost on the way to codegen in most build configs. --- clang/lib/Frontend/CompilerInvocation.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 3efcab5..8d33a59 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1614,18 +1614,6 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, } } - if (Arg *A = Args.getLastArg(options::OPT_inline_asm_EQ)) { - StringRef Value = A->getValue(); - if (Value == "att") { - Opts.InlineAsmDialect = CodeGenOptions::IAD_ATT; - } else if (Value == "intel") { - Opts.InlineAsmDialect = CodeGenOptions::IAD_Intel; - } else { - Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) - << A->getValue(); - } - } - // PIC defaults to -fno-direct-access-external-data while non-PIC defaults to // -fdirect-access-external-data. Opts.DirectAccessExternalData = -- cgit v1.1