We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1878ce commit bbe0a79Copy full SHA for bbe0a79
lib/Interpreter/CppInterOp.cpp
@@ -3446,8 +3446,8 @@ namespace Cpp {
3446
if (!is_demangle_active) {
3447
auto& I = getInterp();
3448
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3449
- auto t = EE.getTargetMachine().getTargetTriple();
3450
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3451
is_demangle_active = true;
3452
}
3453
@@ -3457,7 +3457,6 @@ namespace Cpp {
3457
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3458
if (demangle && nameForDlsym[0] == '_')
3459
nameForDlsym.erase(0, 1);
3460
- }
3461
return nameForDlsym;
3462
3463
0 commit comments