diff options
author | Tim Northover <tnorthover@apple.com> | 2015-10-30 16:30:36 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2015-10-30 16:30:36 +0000 |
commit | 756447a67c39ba1e95cb5c92cbeb06f8a795b7fb (patch) | |
tree | b26923de67a7995f9112ebdab252ddb3cf2f8a71 /clang/lib/Basic/Targets.cpp | |
parent | 67465f80eca80beb18f1602095fe03c76b74d52e (diff) | |
download | bcm5719-llvm-756447a67c39ba1e95cb5c92cbeb06f8a795b7fb.tar.gz bcm5719-llvm-756447a67c39ba1e95cb5c92cbeb06f8a795b7fb.zip |
Watch and TV OS: wire up basic ABI choices
This sets the mostly expected Darwin default ABI options for these two
platforms. Active changes from these defaults for watchOS are in a later patch.
llvm-svn: 251708
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 2a220360088..52fa910b77f 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -19,6 +19,7 @@ #include "clang/Basic/MacroBuilder.h" #include "clang/Basic/TargetBuiltins.h" #include "clang/Basic/TargetOptions.h" +#include "clang/Basic/Version.h" #include "llvm/ADT/APFloat.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringExtras.h" @@ -4464,7 +4465,9 @@ public: // // FIXME: We need support for -meabi... we could just mangle it into the // name. - if (Name == "apcs-gnu") { + // FIXME: aapcs16 isn't really the same as APCS, this allows tests to pass + // until the real ABI is committed. + if (Name == "apcs-gnu" || Name == "aapcs16") { setABIAPCS(); return true; } |