summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ValueTracking.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-03-13 04:39:26 +0000
committerBill Wendling <isanbard@gmail.com>2009-03-13 04:39:26 +0000
commit0582ae99ba75a556d6ff63b254da327d32ba036f (patch)
treef6acdc868987413752d785dabab58cbb8e72e6b1 /include/llvm/Analysis/ValueTracking.h
parentc7a09ab3110b9462ad9646cb60c22c8527491ad9 (diff)
downloadllvm-0582ae99ba75a556d6ff63b254da327d32ba036f.tar.gz
llvm-0582ae99ba75a556d6ff63b254da327d32ba036f.tar.bz2
llvm-0582ae99ba75a556d6ff63b254da327d32ba036f.tar.xz
Oops...I committed too much.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ValueTracking.h')
-rw-r--r--include/llvm/Analysis/ValueTracking.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h
index cefa076e79..5f5f77a5c9 100644
--- a/include/llvm/Analysis/ValueTracking.h
+++ b/include/llvm/Analysis/ValueTracking.h
@@ -75,13 +75,13 @@ namespace llvm {
}
/// GetConstantStringInfo - This function computes the length of a
- /// null-terminated C string pointed to by V. If successful, it returns the
- /// string. If unsuccessful, it returns NUL. If StopAtNul is set to true
- /// (the default), the returned string is truncated by a nul character in the
- /// global. If StopAtNul is false, the nul character is included in the
- /// result string.
- const char *GetConstantStringInfo(Value *V, uint64_t Offset = 0,
- bool StopAtNul = true);
+ /// null-terminated C string pointed to by V. If successful, it returns true
+ /// and returns the string in Str. If unsuccessful, it returns false. If
+ /// StopAtNul is set to true (the default), the returned string is truncated
+ /// by a nul character in the global. If StopAtNul is false, the nul
+ /// character is included in the result string.
+ bool GetConstantStringInfo(Value *V, std::string &Str, uint64_t Offset = 0,
+ bool StopAtNul = true);
} // end namespace llvm
#endif