diff options
author | Nikita Popov <npopov@redhat.com> | 2022-12-14 13:41:10 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-01-18 09:58:32 +0100 |
commit | 9ed2f14c87174e316de03407442eed2c643f3695 (patch) | |
tree | 76a81874fc8c031cc2708fb5662b3ca30eabe051 /llvm/lib/AsmParser/LLLexer.cpp | |
parent | 48c2172e51b27ce173daf22c0266c7a380d8adf7 (diff) | |
download | llvm-9ed2f14c87174e316de03407442eed2c643f3695.zip llvm-9ed2f14c87174e316de03407442eed2c643f3695.tar.gz llvm-9ed2f14c87174e316de03407442eed2c643f3695.tar.bz2 |
[AsmParser] Remove typed pointer auto-detection
IR is now always parsed in opaque pointer mode, unless
-opaque-pointers=0 is explicitly given. There is no automatic
detection of typed pointers anymore.
The -opaque-pointers=0 option is added to any remaining IR tests
that haven't been migrated yet.
Differential Revision: https://reviews.llvm.org/D141912
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLLexer.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp index c33dc97..6837ae2 100644 --- a/llvm/lib/AsmParser/LLLexer.cpp +++ b/llvm/lib/AsmParser/LLLexer.cpp @@ -807,10 +807,7 @@ lltok::Kind LLLexer::LexIdentifier() { TYPEKEYWORD("token", Type::getTokenTy(Context)); if (Keyword == "ptr") { - // setOpaquePointers() must be called before creating any pointer types. - if (!Context.hasSetOpaquePointersValue()) { - Context.setOpaquePointers(true); - } else if (Context.supportsTypedPointers()) { + if (Context.supportsTypedPointers()) { Warning("ptr type is only supported in -opaque-pointers mode"); return lltok::Error; } |