From 1a72add615cdea9454f681491b8c00c1ae191d64 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 7 Jul 2011 07:07:08 +0000 Subject: Compute feature bits at time of MCSubtargetInfo initialization. llvm-svn: 134606 --- llvm/lib/Target/Sparc/SparcSubtarget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/Sparc/SparcSubtarget.cpp') diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.cpp b/llvm/lib/Target/Sparc/SparcSubtarget.cpp index ee3cc03..c8281ce 100644 --- a/llvm/lib/Target/Sparc/SparcSubtarget.cpp +++ b/llvm/lib/Target/Sparc/SparcSubtarget.cpp @@ -22,7 +22,7 @@ using namespace llvm; SparcSubtarget::SparcSubtarget(const std::string &TT, const std::string &CPU, const std::string &FS, bool is64Bit) : - SparcGenSubtargetInfo(), + SparcGenSubtargetInfo(TT, CPU, FS), IsV9(false), V8DeprecatedInsts(false), IsVIS(false), @@ -39,5 +39,5 @@ SparcSubtarget::SparcSubtarget(const std::string &TT, const std::string &CPU, IsV9 = CPUName == "v9"; // Parse features string. - ParseSubtargetFeatures(FS, CPUName); + ParseSubtargetFeatures(CPUName, FS); } -- cgit v1.1