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 e9e9adb commit eee1daeCopy full SHA for eee1dae
lib/Interpreter/CppInterOp.cpp
@@ -3525,8 +3525,8 @@ namespace Cpp {
3525
if (!is_demangle_active) {
3526
auto& I = getInterp();
3527
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3528
- auto t = EE.getTargetMachine().getTargetTriple();
3529
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3530
is_demangle_active = true;
3531
}
3532
@@ -3536,7 +3536,6 @@ namespace Cpp {
3536
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3537
if (demangle && nameForDlsym[0] == '_')
3538
nameForDlsym.erase(0, 1);
3539
- }
3540
return nameForDlsym;
3541
3542
0 commit comments