[llvm] r206220 - X86: Nuke one more CPU autodetect blurb.
Jim Grosbach
grosbach at apple.com
Mon Apr 14 15:23:30 PDT 2014
Author: grosbach
Date: Mon Apr 14 17:23:30 2014
New Revision: 206220
URL: http://llvm.org/viewvc/llvm-project?rev=206220&view=rev
Log:
X86: Nuke one more CPU autodetect blurb.
Missed one in r206094. This brings MC and TargetMachine back into sync.
Modified:
llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
Modified: llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp?rev=206220&r1=206219&r2=206220&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp Mon Apr 14 17:23:30 2014
@@ -230,14 +230,8 @@ MCSubtargetInfo *X86_MC::createX86MCSubt
}
std::string CPUName = CPU;
- if (CPUName.empty()) {
-#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
- || defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
- CPUName = sys::getHostCPUName();
-#else
+ if (CPUName.empty())
CPUName = "generic";
-#endif
- }
MCSubtargetInfo *X = new MCSubtargetInfo();
InitX86MCSubtargetInfo(X, TT, CPUName, ArchFS);
More information about the llvm-commits
mailing list