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). _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits