diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-10-26 17:30:34 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-10-26 17:30:34 +0000 |
commit | 581a8f79bc1ac3cbe5d621f0b4a0252ab2890bc1 (patch) | |
tree | e0435c8b6e5ebbbf495377a4cd055095d2589939 /lib/Target/Alpha/AlphaSubtarget.cpp | |
parent | f0c2be4d2b6f5b04746efae88e8bc642a864361e (diff) |
Give full control of subtarget features over to table generated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaSubtarget.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaSubtarget.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/Alpha/AlphaSubtarget.cpp b/lib/Target/Alpha/AlphaSubtarget.cpp index cc3a6b11f9..22f0c69823 100644 --- a/lib/Target/Alpha/AlphaSubtarget.cpp +++ b/lib/Target/Alpha/AlphaSubtarget.cpp @@ -19,10 +19,7 @@ using namespace llvm; AlphaSubtarget::AlphaSubtarget(const Module &M, const std::string &FS) : HasF2I(false), HasCT(false) { std::string CPU = "generic"; - SubtargetFeatures Features(FS); - Features.setCPUIfNone(CPU); - uint32_t Bits =Features.getBits(SubTypeKV, SubTypeKVSize, - FeatureKV, FeatureKVSize); - HasF2I = (Bits & FeatureFIX) != 0; - HasCT = (Bits & FeatureCIX) != 0; + + // Parse features string. + ParseSubtargetFeatures(FS, CPU); } |