hanchenye-llvm-project/clang/lib/Basic
Chandler Carruth 212334f7ab Switch the X86TargetInfo object from a string representation of the
selected CPU model to the enumeration. This parses the string
representation once using a StringSwitch on SetCPU. It returns an error
for strings which are not recognized (yay!). Finally it replaces
ridiculous if-chains with switches that cover all enumerators.

The last change required adding several missing entries to the features
function. These were obvious on inspection. Yay for a pattern that gives
warnings when we miss one.

No new test cases yet, as I want to get the 64-bit errors working first.
I'll then start fleshing out the testing more. Currently I'm primarily
testing on Linux, but I'm hoping check whether there are interesting
differences on darwin before long...

llvm-svn: 140685
2011-09-28 08:55:37 +00:00
..
Builtins.cpp Allow the preprocessor to be constructed without performing target- 2011-09-01 23:39:15 +00:00
CMakeLists.txt Switch LangOptions over to a .def file that describes header of the 2011-09-13 17:21:33 +00:00
ConvertUTF.c
Diagnostic.cpp Rename DiagnosticInfo to Diagnostic as per issue 5397 2011-09-26 01:18:08 +00:00
DiagnosticIDs.cpp Rename DiagnosticInfo to Diagnostic as per issue 5397 2011-09-26 01:18:08 +00:00
FileManager.cpp For modules, use a hash of the compiler version, language options, and 2011-09-13 23:15:45 +00:00
FileSystemStatCache.cpp Replace all uses of PathV1::isAbsolute with PathV2::is_{absolute,relative}. 2010-12-17 21:22:22 +00:00
IdentifierTable.cpp Rename LangOptions::Microsoft to LangOptions::MicrosoftExt to make it clear that this flag must be used only for Microsoft extensions and not emulation; to avoid confusion with the new LangOptions::MicrosoftMode flag. 2011-09-17 17:15:52 +00:00
LangOptions.cpp Teach LangOptions::resetNonModularOptions to actually do what it says it does 2011-09-15 14:56:27 +00:00
Makefile Basic: Simplify getClangRepositoryPath and getClangRevision. 2010-09-29 19:15:29 +00:00
SourceLocation.cpp Clean up as many of the comments in Basic I can find to talk in terms of 2011-07-26 05:17:23 +00:00
SourceManager.cpp Break SourceManager::translateFileLineCol into translateFile, no functionality change. 2011-09-27 17:22:25 +00:00
TargetInfo.cpp Fix missing includes for llvm_unreachable 2011-09-23 05:35:21 +00:00
Targets.cpp Switch the X86TargetInfo object from a string representation of the 2011-09-28 08:55:37 +00:00
TokenKinds.cpp
Version.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
VersionTuple.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00