diff options
| author | Davide Italiano <davide@freebsd.org> | 2015-12-30 13:53:25 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2015-12-30 13:53:25 +0000 |
| commit | 18799ff8376f8e00840d41feebb7f8c2b55adada (patch) | |
| tree | 085364f72a5c430005a679279399762344a29366 /clang/lib/Driver | |
| parent | e1afb9b8eefb5ac4ae926e945fad4f37deb2253a (diff) | |
| download | bcm5719-llvm-18799ff8376f8e00840d41feebb7f8c2b55adada.tar.gz bcm5719-llvm-18799ff8376f8e00840d41feebb7f8c2b55adada.zip | |
Disable generating movt on FreeBSD.
It's sort of an hack, but we have no choice.
The linker in the base system doesn't handle that correctly (yet).
Once FreeBSD will import lld, this can be backed out.
Patch by: Andrew Turner!
llvm-svn: 256641
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 7a185dc0764..bf0470bbd1e 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -938,8 +938,8 @@ static void getARMTargetFeatures(const ToolChain &TC, 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) + // The kext and FreeBSD linkers don't know how to deal with movw/movt. + if (KernelOrKext || Triple.isOSFreeBSD()) Features.push_back("+no-movt"); } |

