summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/TripleTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a 'normalize' method to the Triple class, which takes a mucked upDuncan Sands2010-08-121-9/+108
| | | | | | | | | | | | | | | target triple and straightens it out. This does less than gcc's script config.sub, for example it turns i386-mingw32 into i386--mingw32 not i386-pc-mingw32, but it does a decent job of turning funky triples into something that the rest of the Triple class can understand. The plan is to use this to canonicalize triple's when they are first provided by users, and have the rest of LLVM only deal with canonical triples. Once this is done the special case workarounds in the Triple constructor can be removed, making the class more regular and easier to use. The comments and unittests for the Triple class are already adjusted in this patch appropriately for this brave new world of increased uniformity. llvm-svn: 110909
* Improve Triple to recognize the OS in i386-mingw32.Daniel Dunbar2009-08-181-0/+12
| | | | llvm-svn: 79359
* Update Triple to use StringRef/Twine based APIs.Daniel Dunbar2009-07-261-36/+36
| | | | | | - This is now shorter, simpler, safer, and more efficient, what a deal. llvm-svn: 77119
* Revert my intentional breakage.Daniel Dunbar2009-06-301-2/+0
| | | | llvm-svn: 74531
* Intentionally break a unittest to test my buildbot gtest command.Daniel Dunbar2009-06-301-0/+2
| | | | | | - Apologies in advance for the noise. llvm-svn: 74530
* Reversed order of args in EXPECT_EQ() macros to be in the correct order:Misha Brukman2009-06-091-70/+70
| | | | | | | EXPECT_EQ(expected, actual) . This will make error messages understandable as it uses terms such as "expected" and "actual" based on the order of arguments. llvm-svn: 73150
* Add llvm::Triple class for abstracting access to target triples.Daniel Dunbar2009-04-011-0/+137
- The code is silly, I'm just amusing myself. Rewrite to be efficient if you like. :) Also, if you wish to debate the proper names of the triple components I'm all ears. llvm-svn: 68252
OpenPOWER on IntegriCloud