diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-01 15:15:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-01 15:15:22 +0000 |
commit | 6f75550e40a9177db9979fc130ce3ece026b137d (patch) | |
tree | 783699bbd5b03f238cb398541349ef8ce8d2e687 /lib/Driver/Tools.cpp | |
parent | fb7049a21969d856292c278950c0a5c70986d412 (diff) |
Basic support for -mms-bitfields, from Carl Norum!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index d11db7ed2d..8f8c64d460 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1028,6 +1028,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // work around a linker bug; see <rdar://problem/7651567>. if (getToolChain().getTriple().getOS() != llvm::Triple::Darwin) CmdArgs.push_back("-mconstructor-aliases"); + + if (Args.hasArg(options::OPT_mms_bitfields)) { + CmdArgs.push_back("-mms-bitfields"); + } // This is a coarse approximation of what llvm-gcc actually does, both // -fasynchronous-unwind-tables and -fnon-call-exceptions interact in more |