summaryrefslogtreecommitdiff
path: root/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
commit9be8b4fc92e1ace819a78db512c1f945c1471be7 (patch)
tree90507303bf41bb899a4274fdd27b75521c1d62c3 /lib/Target/X86/X86Subtarget.h
parentf78708593407286de34506e699da25a56b65a20d (diff)
downloadllvm-9be8b4fc92e1ace819a78db512c1f945c1471be7.tar.gz
llvm-9be8b4fc92e1ace819a78db512c1f945c1471be7.tar.bz2
llvm-9be8b4fc92e1ace819a78db512c1f945c1471be7.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r--lib/Target/X86/X86Subtarget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h
index d1c706725d..e97da4b6f4 100644
--- a/lib/Target/X86/X86Subtarget.h
+++ b/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;