File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
branches/snap-stage3/src/rustllvm Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 344628fe91ffa0fad32bc5b3eee3e6b4b48c9990
4
+ refs/heads/snap-stage3: a34948a2c5d7cd296abda6970652a9513d67feb7
5
5
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -452,6 +452,8 @@ LLVMRustWriteOutputFile(LLVMPassManagerRef PMR,
452
452
Options.NoFramePointerElim = true ;
453
453
Options.EnableSegmentedStacks = EnableSegmentedStacks;
454
454
455
+ PassManager *PM = unwrap<PassManager>(PMR);
456
+
455
457
std::string Err;
456
458
std::string Trip (Triple::normalize (triple));
457
459
std::string FeaturesStr;
@@ -461,8 +463,9 @@ LLVMRustWriteOutputFile(LLVMPassManagerRef PMR,
461
463
TheTarget->createTargetMachine (Trip, CPUStr, FeaturesStr,
462
464
Options, Reloc::PIC_,
463
465
CodeModel::Default, OptLevel);
466
+ Target->addAnalysisPasses (*PM);
467
+
464
468
bool NoVerify = false ;
465
- PassManager *PM = unwrap<PassManager>(PMR);
466
469
std::string ErrorInfo;
467
470
raw_fd_ostream OS (path, ErrorInfo,
468
471
raw_fd_ostream::F_Binary);
You can’t perform that action at this time.
0 commit comments