diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-07-20 23:53:02 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-07-20 23:53:02 +0000 |
commit | 6a543b6754a6e0caea01f9f69e4d37a6cb7faa2f (patch) | |
tree | 9c25619330c5c0ac472426e461462ed71b56e33c /clang/lib/Driver/Tools.cpp | |
parent | 42427d2c3833ece68daae2d405e2a840bde31a82 (diff) | |
download | bcm5719-llvm-6a543b6754a6e0caea01f9f69e4d37a6cb7faa2f.tar.gz bcm5719-llvm-6a543b6754a6e0caea01f9f69e4d37a6cb7faa2f.zip |
Revert r242736.
r242737 caused builds to fail with the following error message, so I'm
reverting the clang side change too:
error:Too many subtarget features! Bump MAX_SUBTARGET_FEATURES.
llvm-svn: 242741
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 8e5e9804a36..3ae055801b8 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -719,12 +719,6 @@ static void getARMTargetFeatures(const Driver &D, const llvm::Triple &Triple, Features.push_back("+long-calls"); } - // llvm does not support reserving registers in general. There is support - // for reserving r9 on ARM though (defined as a platform-specific register - // in ARM EABI). - if (Args.hasArg(options::OPT_ffixed_r9)) - Features.push_back("+reserve-r9"); - // The kext linker doesn't know how to deal with movw/movt. if (KernelOrKext) Features.push_back("+no-movt"); @@ -834,6 +828,13 @@ void Clang::AddARMTargetArgs(const ArgList &Args, ArgStringList &CmdArgs, options::OPT_mno_implicit_float, true)) CmdArgs.push_back("-no-implicit-float"); + // llvm does not support reserving registers in general. There is support + // for reserving r9 on ARM though (defined as a platform-specific register + // in ARM EABI). + if (Args.hasArg(options::OPT_ffixed_r9)) { + CmdArgs.push_back("-backend-option"); + CmdArgs.push_back("-arm-reserve-r9"); + } } /// getAArch64TargetCPU - Get the (LLVM) name of the AArch64 cpu we are |