mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
add a setName variant that takes a null-terminated string. This can be
used to avoid std::string allocations in common cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -92,6 +92,8 @@ public:
|
||||
|
||||
void setName(const std::string &name);
|
||||
void setName(const char *Name, unsigned NameLen);
|
||||
void setName(const char *Name); // Takes a null-terminated string.
|
||||
|
||||
|
||||
/// takeName - transfer the name from V to this value, setting V's name to
|
||||
/// empty. It is an error to call V->takeName(V).
|
||||
|
Reference in New Issue
Block a user