diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-14 22:20:45 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-14 22:20:45 +0000 |
commit | 0a60fa33210202a38a59ae3ea8681216f234ce51 (patch) | |
tree | 4b759048ecc8fe86186d06b76c6e36cc75f7fbb9 /include/llvm/Analysis | |
parent | 4eb373988e3211b0a481dee60ecdc3d12821b7b9 (diff) | |
download | external_llvm-0a60fa33210202a38a59ae3ea8681216f234ce51.zip external_llvm-0a60fa33210202a38a59ae3ea8681216f234ce51.tar.gz external_llvm-0a60fa33210202a38a59ae3ea8681216f234ce51.tar.bz2 |
Constify GetConstantStringInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/ValueTracking.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h index 0791b7b..d580897 100644 --- a/include/llvm/Analysis/ValueTracking.h +++ b/include/llvm/Analysis/ValueTracking.h @@ -122,7 +122,8 @@ namespace llvm { /// 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 GetConstantStringInfo(const Value *V, std::string &Str, + uint64_t Offset = 0, bool StopAtNul = true); /// GetStringLength - If we can compute the length of the string pointed to by |