summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-08-12 11:31:39 +0000
committerDuncan Sands <baldrick@free.fr>2010-08-12 11:31:39 +0000
commit501dff76ce2b3ab14c218980e47c324172aad74f (patch)
tree429567914eeb3c8c252ca465077c6c7f9349eb1b /llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
parent5af0e3cbbade77b21006f1968ead457a2d7a8e20 (diff)
downloadbcm5719-llvm-501dff76ce2b3ab14c218980e47c324172aad74f.tar.gz
bcm5719-llvm-501dff76ce2b3ab14c218980e47c324172aad74f.zip
Add a 'normalize' method to the Triple class, which takes a mucked up
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
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysisEvaluator.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud