diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-03-21 20:40:05 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-03-21 20:40:05 +0000 |
commit | 1ec0ade3bb7d1468c3dfa6ba7ce7a48b2b95d9d3 (patch) | |
tree | e87904cee2751506fe13087c5c5718fd2d5d3016 /lib/Driver/Tools.cpp | |
parent | b26fbc13829212c1788272e9c880bbaa8055c55f (diff) |
Add clang support for cortex-m0 cpus. Patch by James Orr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 5a4b7e29ba..6bfe82a8a6 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -374,6 +374,8 @@ static const char *getARMTargetCPU(const ArgList &Args, return "iwmmxt"; if (MArch == "xscale") return "xscale"; + if (MArch == "armv6m" || MArch == "armv6-m") + return "cortex-m0"; // If all else failed, return the most base CPU LLVM supports. return "arm7tdmi"; |