diff options
author | Eric Christopher <echristo@gmail.com> | 2017-03-25 19:26:04 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-03-25 19:26:04 +0000 |
commit | 1e6fedbb83585d6ed41c46d84b2727665d85f911 (patch) | |
tree | b2e5d8355519ae13e39b300bb2b300a2b8ad4eb5 /clang/lib/Basic/Targets.cpp | |
parent | c4e42d2c66c088faa4e013c8680fe2a06f43b47f (diff) | |
download | bcm5719-llvm-1e6fedbb83585d6ed41c46d84b2727665d85f911.tar.gz bcm5719-llvm-1e6fedbb83585d6ed41c46d84b2727665d85f911.zip |
_CALL_LINUX is only defined on 64-bit ppc linux platforms, not 32-bit.
Adjust and add a test for the 32-bit side.
llvm-svn: 298778
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index a43fb91d445..23ef9f8dd6b 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -1238,9 +1238,9 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, Builder.defineMacro("_CALL_ELF", "2"); // This typically is only for a new enough linker (bfd >= 2.16.2 or gold), but - // our suppport post-dates this and it should work on all linux platforms. It - // is guaranteed to work on all elfv2 platforms. - if (getTriple().getOS() == llvm::Triple::Linux) + // our suppport post-dates this and it should work on all 64-bit ppc linux + // platforms. It is guaranteed to work on all elfv2 platforms. + if (getTriple().getOS() == llvm::Triple::Linux && PointerWidth == 64) Builder.defineMacro("_CALL_LINUX", "1"); // Subtarget options. |