diff options
author | Andres Villegas <andresvi@google.com> | 2024-03-19 10:58:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 13:58:31 -0400 |
commit | 3176c157190c80b4279dec86c4b9b84472d8ccac (patch) | |
tree | 31751c0814ab695cf76a6ab63ca23d7612c04512 /llvm/lib/CodeGen | |
parent | 4bade55cc65db8b7f977dba4f13bf335e93317a8 (diff) | |
download | llvm-3176c157190c80b4279dec86c4b9b84472d8ccac.zip llvm-3176c157190c80b4279dec86c4b9b84472d8ccac.tar.gz llvm-3176c157190c80b4279dec86c4b9b84472d8ccac.tar.bz2 |
Revert "[dsymutil] Remove support for obfuscated bitcode" (#85826)
Reverts llvm/llvm-project#85713 Since it is breaking Linux x64 builds.
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/NonRelocatableStringpool.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/NonRelocatableStringpool.cpp b/llvm/lib/CodeGen/NonRelocatableStringpool.cpp index 26857c6..e8391af 100644 --- a/llvm/lib/CodeGen/NonRelocatableStringpool.cpp +++ b/llvm/lib/CodeGen/NonRelocatableStringpool.cpp @@ -12,6 +12,8 @@ namespace llvm { DwarfStringPoolEntryRef NonRelocatableStringpool::getEntry(StringRef S) { + if (Translator) + S = Translator(S); auto I = Strings.insert({S, DwarfStringPoolEntry()}); auto &Entry = I.first->second; if (I.second || !Entry.isIndexed()) { @@ -26,6 +28,9 @@ DwarfStringPoolEntryRef NonRelocatableStringpool::getEntry(StringRef S) { StringRef NonRelocatableStringpool::internString(StringRef S) { DwarfStringPoolEntry Entry{nullptr, 0, DwarfStringPoolEntry::NotIndexed}; + if (Translator) + S = Translator(S); + auto InsertResult = Strings.insert({S, Entry}); return InsertResult.first->getKey(); } |