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 751e7d2 commit 05f8ad3Copy full SHA for 05f8ad3
lib/Interpreter/CppInterOp.cpp
@@ -3367,8 +3367,8 @@ namespace Cpp {
3367
if (!is_demangle_active) {
3368
auto& I = getInterp();
3369
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3370
- auto t = EE.getTargetMachine().getTargetTriple();
3371
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3372
is_demangle_active = true;
3373
}
3374
@@ -3378,7 +3378,6 @@ namespace Cpp {
3378
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3379
if (demangle && nameForDlsym[0] == '_')
3380
nameForDlsym.erase(0, 1);
3381
- }
3382
return nameForDlsym;
3383
3384
0 commit comments