[llvm-commits] CVS: llvm/include/llvm/Value.h
Chris Lattner
sabre at nondot.org
Mon Feb 12 23:53:54 PST 2007
Changes in directory llvm/include/llvm:
Value.h updated: 1.94 -> 1.95
---
Log message:
add a setName variant that takes a null-terminated string. This can be
used to avoid std::string allocations in common cases.
---
Diffs of the changes: (+2 -0)
Value.h | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.94 llvm/include/llvm/Value.h:1.95
--- llvm/include/llvm/Value.h:1.94 Mon Feb 12 12:52:59 2007
+++ llvm/include/llvm/Value.h Tue Feb 13 01:53:34 2007
@@ -92,6 +92,8 @@
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).
More information about the llvm-commits
mailing list