File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ lto::Config BitcodeCompiler::createConfig() {
91
91
c.TimeTraceGranularity = ctx.config .timeTraceGranularity ;
92
92
93
93
if (ctx.config .emit == EmitKind::LLVM) {
94
- c.PostInternalizeModuleHook = [this ](size_t task, const Module &m) {
94
+ c.PreCodeGenModuleHook = [this ](size_t task, const Module &m) {
95
95
if (std::unique_ptr<raw_fd_ostream> os =
96
96
openLTOOutputFile (ctx.config .outputFile ))
97
97
WriteBitcodeToFile (m, *os, false );
Original file line number Diff line number Diff line change 1
1
; REQUIRES: x86
2
- ; RUN: llvm-as -o %T/lto.obj %s
2
+ ; RUN: rm -rf %t && mkdir %t
3
+ ; RUN: llvm-as -o %t/lto.obj %s
3
4
4
- ; RUN: lld-link /lldemit:llvm /out:%T /lto.bc /entry:main /subsystem:console %T /lto.obj
5
- ; RUN: llvm-dis %T /lto.bc -o - | FileCheck %s
5
+ ; RUN: lld-link /lldemit:llvm /out:%t /lto.bc /entry:main /subsystem:console %t /lto.obj
6
+ ; RUN: llvm-dis %t /lto.bc -o - | FileCheck %s
6
7
7
- ; CHECK: define void @main()
8
+ ; CHECK: define void @main() local_unnamed_addr
8
9
9
10
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10
11
target triple = "x86_64-pc-windows-msvc"
You can’t perform that action at this time.
0 commit comments