[llvm-commits] CVS: llvm/include/llvm/Constant.h
Evan Cheng
evan.cheng at apple.com
Fri Mar 10 15:52:16 PST 2006
Changes in directory llvm/include/llvm:
Constant.h updated: 1.28 -> 1.29
---
Log message:
Added a parameter to control whether Constant::getStringValue() would chop
off the result string at the first null terminator.
---
Diffs of the changes: (+3 -1)
Constant.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.28 llvm/include/llvm/Constant.h:1.29
--- llvm/include/llvm/Constant.h:1.28 Wed Mar 8 12:11:06 2006
+++ llvm/include/llvm/Constant.h Fri Mar 10 17:52:03 2006
@@ -93,8 +93,10 @@
/// getStringValue - Turn an LLVM constant pointer that eventually points to a
/// global into a string value. Return an empty string if we can't do it.
+ /// Parameter Chop determines if the result is chopped at the first null
+ /// terminator.
///
- std::string getStringValue(unsigned Offset = 0);
+ std::string getStringValue(bool Chop = true, unsigned Offset = 0);
};
} // End llvm namespace
More information about the llvm-commits
mailing list