File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -825,15 +825,7 @@ lltok::Kind LLLexer::LexIdentifier() {
825
825
TYPEKEYWORD (" x86_mmx" , Type::getX86_MMXTy (Context));
826
826
TYPEKEYWORD (" x86_amx" , Type::getX86_AMXTy (Context));
827
827
TYPEKEYWORD (" token" , Type::getTokenTy (Context));
828
-
829
- if (Keyword == " ptr" ) {
830
- if (Context.supportsTypedPointers ()) {
831
- Warning (" ptr type is only supported in -opaque-pointers mode" );
832
- return lltok::Error;
833
- }
834
- TyVal = PointerType::getUnqual (Context);
835
- return lltok::Type;
836
- }
828
+ TYPEKEYWORD (" ptr" , PointerType::getUnqual (Context));
837
829
838
830
#undef TYPEKEYWORD
839
831
Original file line number Diff line number Diff line change @@ -2383,9 +2383,6 @@ Error BitcodeReader::parseTypeTableBody() {
2383
2383
case bitc::TYPE_CODE_OPAQUE_POINTER: { // OPAQUE_POINTER: [addrspace]
2384
2384
if (Record.size () != 1 )
2385
2385
return error (" Invalid opaque pointer record" );
2386
- if (Context.supportsTypedPointers ())
2387
- return error (
2388
- " Opaque pointers are only supported in -opaque-pointers mode" );
2389
2386
unsigned AddressSpace = Record[0 ];
2390
2387
ResultTy = PointerType::get (Context, AddressSpace);
2391
2388
break ;
Original file line number Diff line number Diff line change @@ -394,9 +394,7 @@ bool llvm::lowerGlobalIFuncUsersAsGlobalCtor(
394
394
const DataLayout &DL = M.getDataLayout ();
395
395
396
396
PointerType *TableEntryTy =
397
- Ctx.supportsTypedPointers ()
398
- ? PointerType::get (Type::getInt8Ty (Ctx), DL.getProgramAddressSpace ())
399
- : PointerType::get (Ctx, DL.getProgramAddressSpace ());
397
+ PointerType::get (Ctx, DL.getProgramAddressSpace ());
400
398
401
399
ArrayType *FuncPtrTableTy =
402
400
ArrayType::get (TableEntryTy, IFuncsToLower.size ());
@@ -466,9 +464,7 @@ bool llvm::lowerGlobalIFuncUsersAsGlobalCtor(
466
464
467
465
InitBuilder.CreateRetVoid ();
468
466
469
- PointerType *ConstantDataTy = Ctx.supportsTypedPointers ()
470
- ? PointerType::get (Type::getInt8Ty (Ctx), 0 )
471
- : PointerType::get (Ctx, 0 );
467
+ PointerType *ConstantDataTy = PointerType::get (Ctx, 0 );
472
468
473
469
// TODO: Is this the right priority? Probably should be before any other
474
470
// constructors?
You can’t perform that action at this time.
0 commit comments