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 a15a25c commit 4cdb6b1Copy full SHA for 4cdb6b1
lib/Interpreter/CppInterOp.cpp
@@ -3441,8 +3441,8 @@ namespace Cpp {
3441
if (!is_demangle_active) {
3442
auto& I = getInterp();
3443
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3444
- auto t = EE.getTargetMachine().getTargetTriple();
3445
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3446
is_demangle_active = true;
3447
}
3448
@@ -3452,7 +3452,6 @@ namespace Cpp {
3452
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3453
if (demangle && nameForDlsym[0] == '_')
3454
nameForDlsym.erase(0, 1);
3455
- }
3456
return nameForDlsym;
3457
3458
0 commit comments