[llvm-commits] CVS: llvm/include/llvm/Value.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 10 15:41:01 PST 2004
Changes in directory llvm/include/llvm:
Value.h updated: 1.48 -> 1.49
---
Log message:
Minor cleanup
---
Diffs of the changes: (+1 -1)
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.48 llvm/include/llvm/Value.h:1.49
--- llvm/include/llvm/Value.h:1.48 Tue Nov 11 16:41:30 2003
+++ llvm/include/llvm/Value.h Sat Jan 10 15:40:29 2004
@@ -78,7 +78,7 @@
inline const Type *getType() const { return Ty; }
// All values can potentially be named...
- inline bool hasName() const { return Name != ""; }
+ inline bool hasName() const { return !Name.empty(); }
inline const std::string &getName() const { return Name; }
virtual void setName(const std::string &name, SymbolTable * = 0) {
More information about the llvm-commits
mailing list