summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ValueTracking.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-14 22:20:45 +0000
committerDan Gohman <gohman@apple.com>2010-04-14 22:20:45 +0000
commit0a60fa33210202a38a59ae3ea8681216f234ce51 (patch)
tree4b759048ecc8fe86186d06b76c6e36cc75f7fbb9 /include/llvm/Analysis/ValueTracking.h
parent4eb373988e3211b0a481dee60ecdc3d12821b7b9 (diff)
downloadllvm-0a60fa33210202a38a59ae3ea8681216f234ce51.tar.gz
llvm-0a60fa33210202a38a59ae3ea8681216f234ce51.tar.bz2
llvm-0a60fa33210202a38a59ae3ea8681216f234ce51.tar.xz
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/ValueTracking.h')
-rw-r--r--include/llvm/Analysis/ValueTracking.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h
index 0791b7bd4c..d580897484 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