diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-23 03:14:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-23 03:14:31 +0000 |
commit | 9f8301413c8ac0b95c0c3ca0a8696a2041f01ac0 (patch) | |
tree | ee310b5b525c9f4d4c8d2bd1a83bf884afe0a1cc /llvm/lib/Target/ARM/ARMSubtarget.cpp | |
parent | d00d3445191967568b2f1c15e342e1cbb858f739 (diff) | |
download | bcm5719-llvm-9f8301413c8ac0b95c0c3ca0a8696a2041f01ac0.tar.gz bcm5719-llvm-9f8301413c8ac0b95c0c3ca0a8696a2041f01ac0.zip |
Added -march=thumb; removed -enable-thumb.
llvm-svn: 34521
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp index 4363697d3e3..6db36dff29c 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.cpp +++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp @@ -14,16 +14,12 @@ #include "ARMSubtarget.h" #include "ARMGenSubtarget.inc" #include "llvm/Module.h" -#include "llvm/Support/CommandLine.h" using namespace llvm; -// FIXME: this is temporary. -static cl::opt<bool> Thumb("enable-thumb", - cl::desc("Switch to thumb mode in ARM backend")); - -ARMSubtarget::ARMSubtarget(const Module &M, const std::string &FS) +ARMSubtarget::ARMSubtarget(const Module &M, const std::string &FS, bool thumb) : ARMArchVersion(V4T) , HasVFP2(false) + , IsThumb(thumb) , UseThumbBacktraces(false) , IsR9Reserved(false) , stackAlignment(4) @@ -36,8 +32,6 @@ ARMSubtarget::ARMSubtarget(const Module &M, const std::string &FS) // Parse features string. ParseSubtargetFeatures(FS, CPU); - IsThumb = Thumb; - // Set the boolean corresponding to the current target triple, or the default // if one cannot be determined, to true. const std::string& TT = M.getTargetTriple(); |