Skip to content

Commit 7b15669

Browse files
Fix demangle build
1 parent f25ab35 commit 7b15669

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
@@ -3372,8 +3372,8 @@ namespace Cpp {
33723372
if (!is_demangle_active) {
33733373
auto& I = getInterp();
33743374
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3375-
auto t = EE.getTargetMachine().getTargetTriple();
3376-
demangle = t.isOSDarwin() || t.isWindows();
3375+
auto t = EE.getTargetTriple();
3376+
demangle = t.isOSDarwin() || t.isOSWindows();
33773377
is_demangle_active = true;
33783378
}
33793379

@@ -3383,7 +3383,6 @@ namespace Cpp {
33833383
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
33843384
if (demangle && nameForDlsym[0] == '_')
33853385
nameForDlsym.erase(0, 1);
3386-
}
33873386
return nameForDlsym;
33883387
}
33893388

0 commit comments

Comments
 (0)