Skip to content

Commit 80c76c1

Browse files
Fix demangle build
1 parent b5eb022 commit 80c76c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,8 +3557,8 @@ namespace Cpp {
35573557
if (!is_demangle_active) {
35583558
auto& I = getInterp();
35593559
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3560-
auto t = EE.getTargetMachine().getTargetTriple();
3561-
demangle = t.isOSDarwin() || t.isWindows();
3560+
auto t = EE.getTargetTriple();
3561+
demangle = t.isOSDarwin() || t.isOSWindows();
35623562
is_demangle_active = true;
35633563
}
35643564

@@ -3568,7 +3568,6 @@ namespace Cpp {
35683568
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
35693569
if (demangle && nameForDlsym[0] == '_')
35703570
nameForDlsym.erase(0, 1);
3571-
}
35723571
return nameForDlsym;
35733572
}
35743573

0 commit comments

Comments
 (0)