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 b5eb022 commit 80c76c1Copy full SHA for 80c76c1
lib/Interpreter/CppInterOp.cpp
@@ -3557,8 +3557,8 @@ namespace Cpp {
3557
if (!is_demangle_active) {
3558
auto& I = getInterp();
3559
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3560
- auto t = EE.getTargetMachine().getTargetTriple();
3561
- demangle = t.isOSDarwin() || t.isWindows();
+ auto t = EE.getTargetTriple();
+ demangle = t.isOSDarwin() || t.isOSWindows();
3562
is_demangle_active = true;
3563
}
3564
@@ -3568,7 +3568,6 @@ namespace Cpp {
3568
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
3569
if (demangle && nameForDlsym[0] == '_')
3570
nameForDlsym.erase(0, 1);
3571
- }
3572
return nameForDlsym;
3573
3574
0 commit comments