From 26e10aeaf4fb0689d016757cfee403e4caf6d690 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Wed, 15 Dec 2010 01:22:15 +0000 Subject: [PATCH] llvmc: more complete -march table for ARM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121825 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvmc/src/Hooks.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/llvmc/src/Hooks.cpp b/tools/llvmc/src/Hooks.cpp index efc91cf407c..2dc6b8b9161 100644 --- a/tools/llvmc/src/Hooks.cpp +++ b/tools/llvmc/src/Hooks.cpp @@ -50,8 +50,10 @@ std::string ConvertToMAttrImpl(const StrVec& Opts, const ArgMap* Args = 0) { } // Values needed to be special-cased by ConvertMArchToMAttr. -const char* MArchMapKeys[] = { "armv6" }; -const char* MArchMapValues[] = { "v6" }; +const char* MArchMapKeys[] = { "armv4t", "armv5t", "armv5te", "armv6", + "armv6-m", "armv6t2", "armv7-a", "armv7-m" }; +const char* MArchMapValues[] = { "v4t", "v5t", "v5te", "v6", "v6m", "v6t2", + "v7a", "v7m" }; const unsigned NumMArchMapKeys = sizeof(MArchMapKeys) / sizeof(const char*); void InitializeMArchMap(ArgMap& Args) {