File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
branches/dist-snap/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 @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10
- refs/heads/dist-snap: 344628fe91ffa0fad32bc5b3eee3e6b4b48c9990
10
+ refs/heads/dist-snap: a34948a2c5d7cd296abda6970652a9513d67feb7
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
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