summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-09-28 08:55:37 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-09-28 08:55:37 +0000
commit212334f7ab3bf470656c5ca66e72673a7752dcba (patch)
tree6d6cd2f4a93fadadefb89c2c172ef36469b7a243 /clang/lib/Basic/SourceLocation.cpp
parent3ac7aeaacb7bd2681405e844a43f3611e8ae8f85 (diff)
downloadbcm5719-llvm-212334f7ab3bf470656c5ca66e72673a7752dcba.tar.gz
bcm5719-llvm-212334f7ab3bf470656c5ca66e72673a7752dcba.zip
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
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud