Skip to content

Commit 4cdb6b1

Browse files
Fix demangle build
1 parent a15a25c commit 4cdb6b1

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
@@ -3441,8 +3441,8 @@ namespace Cpp {
34413441
if (!is_demangle_active) {
34423442
auto& I = getInterp();
34433443
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3444-
auto t = EE.getTargetMachine().getTargetTriple();
3445-
demangle = t.isOSDarwin() || t.isWindows();
3444+
auto t = EE.getTargetTriple();
3445+
demangle = t.isOSDarwin() || t.isOSWindows();
34463446
is_demangle_active = true;
34473447
}
34483448

@@ -3452,7 +3452,6 @@ namespace Cpp {
34523452
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
34533453
if (demangle && nameForDlsym[0] == '_')
34543454
nameForDlsym.erase(0, 1);
3455-
}
34563455
return nameForDlsym;
34573456
}
34583457

0 commit comments

Comments
 (0)