Skip to content

Commit

Permalink
Fix demangle build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev committed Sep 19, 2024
1 parent f25ab35 commit 7b15669
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Interpreter/CppInterOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3372,8 +3372,8 @@ namespace Cpp {
if (!is_demangle_active) {
auto& I = getInterp();
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
auto t = EE.getTargetMachine().getTargetTriple();
demangle = t.isOSDarwin() || t.isWindows();
auto t = EE.getTargetTriple();
demangle = t.isOSDarwin() || t.isOSWindows();
is_demangle_active = true;
}

Expand All @@ -3383,7 +3383,6 @@ namespace Cpp {
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
if (demangle && nameForDlsym[0] == '_')
nameForDlsym.erase(0, 1);
}
return nameForDlsym;
}

Expand Down

0 comments on commit 7b15669

Please sign in to comment.