aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-22 16:48:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-22 16:48:17 +0000
commit3c66d30d513106bb794990c5e4ba36a31ac19f15 (patch)
tree0dd0bcea893dcd50b730a9911825e8e64273212f /lib/Driver/Tools.cpp
parente5a3ce6dd555788a49efaabc3bd46d704e5e9d65 (diff)
Frontend: Add a more explicit -backend-option flag for passing backend command
line options, instead of leveraging the blanket -mllvm option. - This allows using the frontend itself without requiring the backend have those options available (i.e., if the target wasn't built). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 6bfe82a8a6..59cdfe044f 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -440,7 +440,7 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
// Disable movt generation, if requested.
#ifdef DISABLE_ARM_DARWIN_USE_MOVT
- CmdArgs.push_back("-mllvm");
+ CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-arm-darwin-use-movt=0");
#endif
@@ -607,10 +607,10 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
// Kernel code has more strict alignment requirements.
if (KernelOrKext) {
- CmdArgs.push_back("-mllvm");
+ CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-arm-long-calls");
- CmdArgs.push_back("-mllvm");
+ CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-arm-strict-align");
}
}