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 f25ab35 commit 7b15669Copy full SHA for 7b15669
lib/Interpreter/CppInterOp.cpp
@@ -3372,8 +3372,8 @@ namespace Cpp {
3372
if (!is_demangle_active) {
3373
auto& I = getInterp();
3374
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3375
- auto t = EE.getTargetMachine().getTargetTriple();
3376
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3377
is_demangle_active = true;
3378
}
3379
@@ -3383,7 +3383,6 @@ namespace Cpp {
3383
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3384
if (demangle && nameForDlsym[0] == '_')
3385
nameForDlsym.erase(0, 1);
3386
- }
3387
return nameForDlsym;
3388
3389
0 commit comments