diff options
| author | Eric Christopher <echristo@apple.com> | 2010-03-05 06:58:57 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-03-05 06:58:57 +0000 |
| commit | 25ec483cfca8d3a3ba8728a4a126e04b92789069 (patch) | |
| tree | b669dec328eb3bbee9e93aaf46db0828394b891f /include | |
| parent | b71a2fcf5e5c0e4b598f07f5e3e7b0f2c718baf2 (diff) | |
| download | external_llvm-25ec483cfca8d3a3ba8728a4a126e04b92789069.zip external_llvm-25ec483cfca8d3a3ba8728a4a126e04b92789069.tar.gz external_llvm-25ec483cfca8d3a3ba8728a4a126e04b92789069.tar.bz2 | |
Move GetStringLength and helper from SimplifyLibCalls to ValueTracking.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/Analysis/ValueTracking.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h index 7c673c3..0791b7b 100644 --- a/include/llvm/Analysis/ValueTracking.h +++ b/include/llvm/Analysis/ValueTracking.h @@ -124,6 +124,10 @@ namespace llvm { /// character is included in the result string. bool GetConstantStringInfo(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 + /// the specified pointer, return 'len+1'. If we can't, return 0. + uint64_t GetStringLength(Value *V); } // end namespace llvm #endif |
