зеркало из https://github.com/microsoft/clang-1.git
Rename -fms-inline-asm to -fenable-experimental-ms-inline-asm.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
adfa45ffd6
Коммит
d256f8673b
|
@ -454,7 +454,7 @@ def fmerge_all_constants : Flag<"-fmerge-all-constants">, Group<f_Group>;
|
|||
def fmessage_length_EQ : Joined<"-fmessage-length=">, Group<f_Group>;
|
||||
def fms_extensions : Flag<"-fms-extensions">, Group<f_Group>, Flags<[CC1Option]>,
|
||||
HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;
|
||||
def fms_inline_asm : Flag<"-fms-inline-asm">, Group<f_Group>, Flags<[CC1Option]>,
|
||||
def fenable_experimental_ms_inline_asm : Flag<"-fenable-experimental-ms-inline-asm">, Group<f_Group>, Flags<[CC1Option]>,
|
||||
HelpText<"Enable support for Microsoft style inine assembly">;
|
||||
def fms_compatibility : Flag<"-fms-compatibility">, Group<f_Group>, Flags<[CC1Option]>,
|
||||
HelpText<"Enable Microsoft compatibility mode">;
|
||||
|
|
|
@ -2457,8 +2457,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-fms-extensions");
|
||||
|
||||
// -fms-inline-asm.
|
||||
if (Args.hasArg(options::OPT_fms_inline_asm))
|
||||
CmdArgs.push_back("-fms-inline-asm");
|
||||
if (Args.hasArg(options::OPT_fenable_experimental_ms_inline_asm))
|
||||
CmdArgs.push_back("-fenable-experimental-ms-inline-asm");
|
||||
|
||||
// -fms-compatibility=0 is default.
|
||||
if (Args.hasFlag(options::OPT_fms_compatibility,
|
||||
|
|
|
@ -1261,7 +1261,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
|
|||
Opts.EmitGcovArcs = Args.hasArg(OPT_femit_coverage_data);
|
||||
Opts.EmitGcovNotes = Args.hasArg(OPT_femit_coverage_notes);
|
||||
Opts.EmitOpenCLArgMetadata = Args.hasArg(OPT_cl_kernel_arg_info);
|
||||
Opts.EmitMicrosoftInlineAsm = Args.hasArg(OPT_fms_inline_asm);
|
||||
Opts.EmitMicrosoftInlineAsm = Args.hasArg(OPT_fenable_experimental_ms_inline_asm);
|
||||
Opts.CoverageFile = Args.getLastArgValue(OPT_coverage_file);
|
||||
Opts.DebugCompilationDir = Args.getLastArgValue(OPT_fdebug_compilation_dir);
|
||||
Opts.LinkBitcodeFile = Args.getLastArgValue(OPT_mlink_bitcode_file);
|
||||
|
|
|
@ -36,5 +36,5 @@
|
|||
// FP-CONTRACT-FAST-CHECK: -ffp-contract=fast
|
||||
// FP-CONTRACT-OFF-CHECK: -ffp-contract=off
|
||||
|
||||
// RUN: %clang -fms-extensions -fms-inline-asm %s -### 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS3 %s
|
||||
// CHECK-OPTIONS3: -fms-inline-asm
|
||||
// RUN: %clang -fms-extensions -fenable-experimental-ms-inline-asm %s -### 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS3 %s
|
||||
// CHECK-OPTIONS3: -fenable-experimental-ms-inline-asm
|
||||
|
|
Загрузка…
Ссылка в новой задаче