diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-10-25 15:15:28 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-10-25 15:15:28 +0000 |
commit | 34bd5d5d876212611d8b66a18f4c8604b342c6eb (patch) | |
tree | b65e1b0e1660aa3cdbbc7b1639fce08b82eb411c /lib/Target/Alpha/AlphaSubtarget.cpp | |
parent | e9c6d3637752b940a3c280196b0f594b65725e54 (diff) |
Preparation of supporting scheduling info. Need to find info based on selected
CPU.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaSubtarget.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaSubtarget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Alpha/AlphaSubtarget.cpp b/lib/Target/Alpha/AlphaSubtarget.cpp index 570f68018e..cc3a6b11f9 100644 --- a/lib/Target/Alpha/AlphaSubtarget.cpp +++ b/lib/Target/Alpha/AlphaSubtarget.cpp @@ -19,10 +19,10 @@ using namespace llvm; AlphaSubtarget::AlphaSubtarget(const Module &M, const std::string &FS) : HasF2I(false), HasCT(false) { std::string CPU = "generic"; - uint32_t Bits = - SubtargetFeatures::Parse(FS, CPU, - SubTypeKV, SubTypeKVSize, - FeatureKV, FeatureKVSize); + SubtargetFeatures Features(FS); + Features.setCPUIfNone(CPU); + uint32_t Bits =Features.getBits(SubTypeKV, SubTypeKVSize, + FeatureKV, FeatureKVSize); HasF2I = (Bits & FeatureFIX) != 0; HasCT = (Bits & FeatureCIX) != 0; } |