diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-23 19:50:50 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-23 19:50:50 +0000 |
commit | 41a024385f1220eadc48b48cb4c044a5fbc1b361 (patch) | |
tree | 84e4c7c067cf7671696a466e471ce202604ffb81 /lib/Target/ARM/ARMSubtarget.cpp | |
parent | a14be3b26472b31af81c988edb0b9c05711f875f (diff) |
Propagate CPU string out of SubtargetFeatures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.cpp b/lib/Target/ARM/ARMSubtarget.cpp index 2415a85051..7379f1c39d 100644 --- a/lib/Target/ARM/ARMSubtarget.cpp +++ b/lib/Target/ARM/ARMSubtarget.cpp @@ -23,14 +23,13 @@ ARMSubtarget::ARMSubtarget(const Module &M, const std::string &FS, bool thumb) , UseThumbBacktraces(false) , IsR9Reserved(false) , stackAlignment(4) + , CPUString("generic") , TargetType(isELF) // Default to ELF unless otherwise specified. , TargetABI(ARM_ABI_APCS) { - // Determine default and user specified characteristics - std::string CPU = "generic"; // Parse features string. - ParseSubtargetFeatures(FS, CPU); + CPUString = ParseSubtargetFeatures(FS, CPUString); // Set the boolean corresponding to the current target triple, or the default // if one cannot be determined, to true. |