Skip to content

Commit bbe0a79

Browse files
Fix demangle build
1 parent c1878ce commit bbe0a79

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
@@ -3446,8 +3446,8 @@ namespace Cpp {
34463446
if (!is_demangle_active) {
34473447
auto& I = getInterp();
34483448
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3449-
auto t = EE.getTargetMachine().getTargetTriple();
3450-
demangle = t.isOSDarwin() || t.isWindows();
3449+
auto t = EE.getTargetTriple();
3450+
demangle = t.isOSDarwin() || t.isOSWindows();
34513451
is_demangle_active = true;
34523452
}
34533453

@@ -3457,7 +3457,6 @@ namespace Cpp {
34573457
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
34583458
if (demangle && nameForDlsym[0] == '_')
34593459
nameForDlsym.erase(0, 1);
3460-
}
34613460
return nameForDlsym;
34623461
}
34633462

0 commit comments

Comments
 (0)