HomePhabricator

Use StringRef instead of `const char *`.

Description

Use StringRef instead of const char *.

I don't think there's a need to use const char *. In most (probably all?)
cases, we need a length of a name later, so discarding a length will
lead to a wasted effort.

Differential Revision: https://reviews.llvm.org/D49046

Details

Committed
ruiuJul 9 2018, 3:26 PM
Differential Revision
D49046: Use StringRef instead of `const char *`.
Parents
rL336611: Make llvm.objectsize more conservative with null
Branches
Unknown
Tags
Unknown