Skip to content

Commit 2f2f152

Browse files
Fix demangle build
1 parent 20dbe16 commit 2f2f152

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
@@ -3283,8 +3283,8 @@ namespace Cpp {
32833283
if (!is_demangle_active) {
32843284
auto& I = getInterp();
32853285
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3286-
auto t = EE.getTargetMachine().getTargetTriple();
3287-
demangle = t.isOSDarwin() || t.isWindows();
3286+
auto t = EE.getTargetTriple();
3287+
demangle = t.isOSDarwin() || t.isOSWindows();
32883288
is_demangle_active = true;
32893289
}
32903290

@@ -3294,7 +3294,6 @@ namespace Cpp {
32943294
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
32953295
if (demangle && nameForDlsym[0] == '_')
32963296
nameForDlsym.erase(0, 1);
3297-
}
32983297
return nameForDlsym;
32993298
}
33003299

0 commit comments

Comments
 (0)