commit | 599ae7ee1c1b51989e430b7edc24eb1ac6cc5b3a | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Sun Aug 30 07:51:04 2015 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Sun Aug 30 07:51:04 2015 +0000 |
tree | 01f0ed78f20ff745448be9bb4e2e51ebccb6f046 | |
parent | 673129f5d53592a18470d999a65b1ab4f80a86a7 [diff] |
Teach the target parsing framework to directly compute the length of all of its strings when expanding the string literals from the macros, and push all of the APIs to be StringRef instead of C-string APIs. This (remarkably) removes a very non-trivial number of strlen calls. It even deletes code and complexity from one of the primary users -- Clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246374 91177308-0d34-0410-b5e6-96231b3b80d8