diff options
author | Nikita Popov <npopov@redhat.com> | 2023-07-14 10:51:59 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-07-14 11:52:13 +0200 |
commit | 3eae1bf4c2c768dfadb03ede0e43168dbac4e683 (patch) | |
tree | 7b45d3d3052412126969d70749b9ca5cae3744b1 /llvm/lib/IR/Function.cpp | |
parent | 720debcf641080e65974c217c8659fa11199da7d (diff) | |
download | llvm-3eae1bf4c2c768dfadb03ede0e43168dbac4e683.zip llvm-3eae1bf4c2c768dfadb03ede0e43168dbac4e683.tar.gz llvm-3eae1bf4c2c768dfadb03ede0e43168dbac4e683.tar.bz2 |
[llvm] Remove uses of getNonOpaquePointerElementType() (NFC)
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 3037457..57163ad 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -917,11 +917,6 @@ static std::string getMangledTypeStr(Type *Ty, bool &HasUnnamedType) { std::string Result; if (PointerType *PTyp = dyn_cast<PointerType>(Ty)) { Result += "p" + utostr(PTyp->getAddressSpace()); - // Opaque pointer doesn't have pointee type information, so we just mangle - // address space for opaque pointer. - if (!PTyp->isOpaque()) - Result += getMangledTypeStr(PTyp->getNonOpaquePointerElementType(), - HasUnnamedType); } else if (ArrayType *ATyp = dyn_cast<ArrayType>(Ty)) { Result += "a" + utostr(ATyp->getNumElements()) + getMangledTypeStr(ATyp->getElementType(), HasUnnamedType); |