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 20dbe16 commit 2f2f152Copy full SHA for 2f2f152
lib/Interpreter/CppInterOp.cpp
@@ -3283,8 +3283,8 @@ namespace Cpp {
3283
if (!is_demangle_active) {
3284
auto& I = getInterp();
3285
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3286
- auto t = EE.getTargetMachine().getTargetTriple();
3287
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3288
is_demangle_active = true;
3289
}
3290
@@ -3294,7 +3294,6 @@ namespace Cpp {
3294
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3295
if (demangle && nameForDlsym[0] == '_')
3296
nameForDlsym.erase(0, 1);
3297
- }
3298
return nameForDlsym;
3299
3300
0 commit comments