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 cb85568 commit 8e1c748Copy full SHA for 8e1c748
lib/Interpreter/CppInterOp.cpp
@@ -3393,8 +3393,8 @@ namespace Cpp {
3393
if (!is_demangle_active) {
3394
auto& I = getInterp();
3395
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3396
- auto t = EE.getTargetMachine().getTargetTriple();
3397
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3398
is_demangle_active = true;
3399
}
3400
@@ -3404,7 +3404,6 @@ namespace Cpp {
3404
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3405
if (demangle && nameForDlsym[0] == '_')
3406
nameForDlsym.erase(0, 1);
3407
- }
3408
return nameForDlsym;
3409
3410
0 commit comments