@@ -408,7 +408,7 @@ fn GEP(cx: @block_ctxt, Pointer: ValueRef, Indices: [ValueRef]) -> ValueRef {
408
408
unsafe {
409
409
let instr = llvm:: LLVMBuildGEP ( B ( cx) , Pointer , vec:: to_ptr ( Indices ) ,
410
410
vec:: len ( Indices ) , noname ( ) ) ;
411
- debuginfo:: add_line_info ( cx, instr) ;
411
+ // debuginfo::add_line_info(cx, instr);
412
412
ret instr;
413
413
}
414
414
}
@@ -425,18 +425,18 @@ fn InBoundsGEP(cx: @block_ctxt, Pointer: ValueRef, Indices: [ValueRef]) ->
425
425
ValueRef {
426
426
if cx. unreachable { ret llvm:: LLVMGetUndef ( T_ptr ( T_nil ( ) ) ) ; }
427
427
unsafe {
428
- let v = llvm:: LLVMBuildInBoundsGEP ( B ( cx) , Pointer ,
429
- vec:: to_ptr ( Indices ) ,
430
- vec:: len ( Indices ) , noname ( ) ) ;
431
- debuginfo:: add_line_info ( cx, v ) ;
432
- ret v ;
428
+ let instr = llvm:: LLVMBuildInBoundsGEP ( B ( cx) , Pointer ,
429
+ vec:: to_ptr ( Indices ) ,
430
+ vec:: len ( Indices ) , noname ( ) ) ;
431
+ // debuginfo::add_line_info(cx, instr );
432
+ ret instr ;
433
433
}
434
434
}
435
435
436
436
fn StructGEP ( cx : @block_ctxt , Pointer : ValueRef , Idx : uint ) -> ValueRef {
437
437
if cx. unreachable { ret llvm:: LLVMGetUndef ( T_ptr ( T_nil ( ) ) ) ; }
438
438
let instr = llvm:: LLVMBuildStructGEP ( B ( cx) , Pointer , Idx , noname ( ) ) ;
439
- debuginfo:: add_line_info ( cx, instr) ;
439
+ // debuginfo::add_line_info(cx, instr);
440
440
ret instr;
441
441
}
442
442
@@ -458,137 +458,137 @@ fn GlobalStringPtr(cx: @block_ctxt, _Str: sbuf) -> ValueRef {
458
458
fn Trunc ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
459
459
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
460
460
let instr = llvm:: LLVMBuildTrunc ( B ( cx) , Val , DestTy , noname ( ) ) ;
461
- debuginfo:: add_line_info ( cx, instr) ;
461
+ // debuginfo::add_line_info(cx, instr);
462
462
ret instr;
463
463
}
464
464
465
465
fn ZExt ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
466
466
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
467
467
let instr = llvm:: LLVMBuildZExt ( B ( cx) , Val , DestTy , noname ( ) ) ;
468
- debuginfo:: add_line_info ( cx, instr) ;
468
+ // debuginfo::add_line_info(cx, instr);
469
469
ret instr;
470
470
}
471
471
472
472
fn SExt ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
473
473
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
474
474
let instr = llvm:: LLVMBuildSExt ( B ( cx) , Val , DestTy , noname ( ) ) ;
475
- debuginfo:: add_line_info ( cx, instr) ;
475
+ // debuginfo::add_line_info(cx, instr);
476
476
ret instr;
477
477
}
478
478
479
479
fn FPToUI ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
480
480
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
481
481
let instr = llvm:: LLVMBuildFPToUI ( B ( cx) , Val , DestTy , noname ( ) ) ;
482
- debuginfo:: add_line_info ( cx, instr) ;
482
+ // debuginfo::add_line_info(cx, instr);
483
483
ret instr;
484
484
}
485
485
486
486
fn FPToSI ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
487
487
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
488
488
let instr = llvm:: LLVMBuildFPToSI ( B ( cx) , Val , DestTy , noname ( ) ) ;
489
- debuginfo:: add_line_info ( cx, instr) ;
489
+ // debuginfo::add_line_info(cx, instr);
490
490
ret instr;
491
491
}
492
492
493
493
fn UIToFP ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
494
494
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
495
495
let instr = llvm:: LLVMBuildUIToFP ( B ( cx) , Val , DestTy , noname ( ) ) ;
496
- debuginfo:: add_line_info ( cx, instr) ;
496
+ // debuginfo::add_line_info(cx, instr);
497
497
ret instr;
498
498
}
499
499
500
500
fn SIToFP ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
501
501
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
502
502
let instr = llvm:: LLVMBuildSIToFP ( B ( cx) , Val , DestTy , noname ( ) ) ;
503
- debuginfo:: add_line_info ( cx, instr) ;
503
+ // debuginfo::add_line_info(cx, instr);
504
504
ret instr;
505
505
}
506
506
507
507
fn FPTrunc ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
508
508
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
509
509
let instr = llvm:: LLVMBuildFPTrunc ( B ( cx) , Val , DestTy , noname ( ) ) ;
510
- debuginfo:: add_line_info ( cx, instr) ;
510
+ // debuginfo::add_line_info(cx, instr);
511
511
ret instr;
512
512
}
513
513
514
514
fn FPExt ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
515
515
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
516
516
let instr = llvm:: LLVMBuildFPExt ( B ( cx) , Val , DestTy , noname ( ) ) ;
517
- debuginfo:: add_line_info ( cx, instr) ;
517
+ // debuginfo::add_line_info(cx, instr);
518
518
ret instr;
519
519
}
520
520
521
521
fn PtrToInt ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
522
522
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
523
523
let instr = llvm:: LLVMBuildPtrToInt ( B ( cx) , Val , DestTy , noname ( ) ) ;
524
- debuginfo:: add_line_info ( cx, instr) ;
524
+ // debuginfo::add_line_info(cx, instr);
525
525
ret instr;
526
526
}
527
527
528
528
fn IntToPtr ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
529
529
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
530
530
let instr = llvm:: LLVMBuildIntToPtr ( B ( cx) , Val , DestTy , noname ( ) ) ;
531
- debuginfo:: add_line_info ( cx, instr) ;
531
+ // debuginfo::add_line_info(cx, instr);
532
532
ret instr;
533
533
}
534
534
535
535
fn BitCast ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
536
536
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
537
537
let instr = llvm:: LLVMBuildBitCast ( B ( cx) , Val , DestTy , noname ( ) ) ;
538
- debuginfo:: add_line_info ( cx, instr) ;
538
+ // debuginfo::add_line_info(cx, instr);
539
539
ret instr;
540
540
}
541
541
542
542
fn ZExtOrBitCast ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) ->
543
543
ValueRef {
544
544
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
545
545
let instr = llvm:: LLVMBuildZExtOrBitCast ( B ( cx) , Val , DestTy , noname ( ) ) ;
546
- debuginfo:: add_line_info ( cx, instr) ;
546
+ // debuginfo::add_line_info(cx, instr);
547
547
ret instr;
548
548
}
549
549
550
550
fn SExtOrBitCast ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) ->
551
551
ValueRef {
552
552
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
553
553
let instr = llvm:: LLVMBuildSExtOrBitCast ( B ( cx) , Val , DestTy , noname ( ) ) ;
554
- debuginfo:: add_line_info ( cx, instr) ;
554
+ // debuginfo::add_line_info(cx, instr);
555
555
ret instr;
556
556
}
557
557
558
558
fn TruncOrBitCast ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) ->
559
559
ValueRef {
560
560
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
561
561
let instr = llvm:: LLVMBuildTruncOrBitCast ( B ( cx) , Val , DestTy , noname ( ) ) ;
562
- debuginfo:: add_line_info ( cx, instr) ;
562
+ // debuginfo::add_line_info(cx, instr);
563
563
ret instr;
564
564
}
565
565
566
566
fn Cast ( cx : @block_ctxt , Op : Opcode , Val : ValueRef , DestTy : TypeRef ,
567
567
_Name : sbuf ) -> ValueRef {
568
568
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
569
569
let instr = llvm:: LLVMBuildCast ( B ( cx) , Op , Val , DestTy , noname ( ) ) ;
570
- debuginfo:: add_line_info ( cx, instr) ;
570
+ // debuginfo::add_line_info(cx, instr);
571
571
ret instr;
572
572
}
573
573
574
574
fn PointerCast ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
575
575
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
576
576
let instr = llvm:: LLVMBuildPointerCast ( B ( cx) , Val , DestTy , noname ( ) ) ;
577
- debuginfo:: add_line_info ( cx, instr) ;
577
+ // debuginfo::add_line_info(cx, instr);
578
578
ret instr;
579
579
}
580
580
581
581
fn IntCast ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
582
582
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
583
583
let instr = llvm:: LLVMBuildIntCast ( B ( cx) , Val , DestTy , noname ( ) ) ;
584
- debuginfo:: add_line_info ( cx, instr) ;
584
+ // debuginfo::add_line_info(cx, instr);
585
585
ret instr;
586
586
}
587
587
588
588
fn FPCast ( cx : @block_ctxt , Val : ValueRef , DestTy : TypeRef ) -> ValueRef {
589
589
if cx. unreachable { ret llvm:: LLVMGetUndef ( DestTy ) ; }
590
590
let instr = llvm:: LLVMBuildFPCast ( B ( cx) , Val , DestTy , noname ( ) ) ;
591
- debuginfo:: add_line_info ( cx, instr) ;
591
+ // debuginfo::add_line_info(cx, instr);
592
592
ret instr;
593
593
}
594
594
@@ -670,7 +670,7 @@ fn Call(cx: @block_ctxt, Fn: ValueRef, Args: [ValueRef]) -> ValueRef {
670
670
unsafe {
671
671
let instr = llvm:: LLVMBuildCall ( B ( cx) , Fn , vec:: to_ptr ( Args ) ,
672
672
vec:: len ( Args ) , noname ( ) ) ;
673
- debuginfo:: add_line_info ( cx, instr) ;
673
+ // debuginfo::add_line_info(cx, instr);
674
674
ret instr;
675
675
}
676
676
}
0 commit comments