summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-15 23:18:01 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-15 23:18:01 +0000
commita060d0efd8e50b618f9904591e6a17d22f218d08 (patch)
treeb426ab278862c2d7455902b06f94ccfdbacb5dcb /llvm/lib/Target/X86/X86Subtarget.h
parent5ae72088300ffff7c08c7c43884ad29d6f441b04 (diff)
downloadbcm5719-llvm-a060d0efd8e50b618f9904591e6a17d22f218d08.tar.gz
bcm5719-llvm-a060d0efd8e50b618f9904591e6a17d22f218d08.zip
Reinitialize the ivars in the subtarget.
When we're recalculating the feature set of the subtarget, we need to have the ivars in their initial state. llvm-svn: 175320
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index d1c706725de..e97da4b6f4f 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -201,8 +201,10 @@ public:
/// \brief Reset the features for the X86 target.
virtual void resetSubtargetFeatures(const MachineFunction *MF);
+private:
+ void initializeEnvironment();
void resetSubtargetFeatures(StringRef CPU, StringRef FS);
-
+public:
/// Is this x86_64? (disregarding specific ABI / programming model)
bool is64Bit() const {
return In64BitMode;
OpenPOWER on IntegriCloud