diff options
| author | Teresa Johnson <tejohnson@google.com> | 2017-09-29 15:55:42 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2017-09-29 15:55:42 +0000 |
| commit | 0d0ba25470154bc775f6e17d852b195af0cccf67 (patch) | |
| tree | e2c9d7d7e94fe53ffb3e258a7c82612b50076dc4 | |
| parent | e267103c2f3a230019ffa51ec710df34ee6024f1 (diff) | |
| download | bcm5719-llvm-0d0ba25470154bc775f6e17d852b195af0cccf67.tar.gz bcm5719-llvm-0d0ba25470154bc775f6e17d852b195af0cccf67.zip | |
[ThinLTO] Use decimal suffix for promoted values to match demanglers
Summary:
Demanglers such as libiberty know how to strip suffixes of the form
\.[a-zA-Z]+\.\d+, but our current promoted value suffixes are
.llvm.${modulehash}, where the module hash is in hex. Change the
module hash to decimal to allow demanglers to handle this.
Reviewers: danielcdh
Subscribers: llvm-commits, inglorion
Differential Revision: https://reviews.llvm.org/D38405
llvm-svn: 314527
| -rw-r--r-- | llvm/include/llvm/IR/ModuleSummaryIndex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h index d1564c1e2ce..92dcebe48b0 100644 --- a/llvm/include/llvm/IR/ModuleSummaryIndex.h +++ b/llvm/include/llvm/IR/ModuleSummaryIndex.h @@ -743,7 +743,7 @@ public: static std::string getGlobalNameForLocal(StringRef Name, ModuleHash ModHash) { SmallString<256> NewName(Name); NewName += ".llvm."; - NewName += utohexstr(ModHash[0]); // Take the first 32 bits + NewName += utostr(ModHash[0]); // Take the first 32 bits return NewName.str(); } |

