Skip to content

Commit

Permalink
[Symbol Names] Remove unnecessary name mangling
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyas Atre <[email protected]>
  • Loading branch information
SAtacker committed Jan 11, 2024
1 parent 455b3a8 commit 6fc65f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Interpreter/Compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ getSymbolAddress(clang::Interpreter& I, llvm::StringRef IRName) {

inline llvm::Expected<llvm::JITTargetAddress>
getSymbolAddress(clang::Interpreter& I, clang::GlobalDecl GD) {
const auto& DL = getExecutionEngine(I)->getDataLayout();
char GlobalPrefix = DL.getGlobalPrefix();
std::string MangledName = std::string(1, GlobalPrefix);
std::string MangledName;
compat::maybeMangleDeclName(GD, MangledName);
return getSymbolAddress(I, llvm::StringRef(MangledName));
}
Expand Down

0 comments on commit 6fc65f0

Please sign in to comment.