diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-07-20 21:20:33 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-07-20 21:20:33 +0000 |
commit | ed94324e70729c651ae13801e0e04c601988c530 (patch) | |
tree | f9a6d38a99ab15407f96fbd78882a7903111b54d /clang/lib/Driver/Tools.cpp | |
parent | 1f41bf0c3f44ac457b9c1da7fc0d18b7d35e8a6f (diff) | |
download | bcm5719-llvm-ed94324e70729c651ae13801e0e04c601988c530.tar.gz bcm5719-llvm-ed94324e70729c651ae13801e0e04c601988c530.zip |
Add a new flag, -fms-inline-asm, that enables the output of MS-style inline
assembly.
By default, we don't emit IR for MS-style inline assembly (see r158833 as to
why). This is strictly for testing purposes and should not be enabled with the
expectation that things will work. This is a temporary flag and will be removed
once MS-style inline assembly is fully supported.
llvm-svn: 160573
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index e07068aea14..5c00a7f591e 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -2456,6 +2456,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, getToolChain().getTriple().getOS() == llvm::Triple::Win32)) CmdArgs.push_back("-fms-extensions"); + // -fms-inline-asm. + if (Args.hasArg(options::OPT_fms_inline_asm)) + CmdArgs.push_back("-fms-inline-asm"); + // -fms-compatibility=0 is default. if (Args.hasFlag(options::OPT_fms_compatibility, options::OPT_fno_ms_compatibility, |