diff options
author | Zachary Turner <zturner@google.com> | 2016-09-15 18:41:48 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-09-15 18:41:48 +0000 |
commit | f6607454d4cb52d56c0281d306417dd22cbf6688 (patch) | |
tree | b1432adf1979ea5c9e434634fedc695aaf31298b /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | |
parent | f6eea04cd134ebc149017f68d5b33b73113bdd0c (diff) | |
download | bcm5719-llvm-f6607454d4cb52d56c0281d306417dd22cbf6688.tar.gz bcm5719-llvm-f6607454d4cb52d56c0281d306417dd22cbf6688.zip |
Convert ArchSpec::ParseMachOCPUDashSubtypeTriple to use StringRef.
This makes the code easier to grok, and since this is a very low
level function it also is very helpful to have this take a StringRef
since it means anyone higher up the chain who has a StringRef would
have to first convert it to a null-terminated string. This way it
can work equally well with StringRefs or const char*'s, which will
enable the conversion of higher up functions to StringRef.
Tested on Windows, Linux, and OSX and saw no regressions.
llvm-svn: 281642
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions