Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
export only functions from llvm.used, not variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Apr 27, 2015
1 parent e766151 commit 991ac2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/JSBackend/JSBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2844,7 +2844,7 @@ void JSWriter::parseConstant(const std::string& name, const Constant* CV, bool c
if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
C = CE->getOperand(0); // ignore bitcasts
}
Exports.push_back(getJSName(C));
if (isa<Function>(C)) Exports.push_back(getJSName(C));
}
} else if ((*UI)->getName() == "llvm.global.annotations") {
// llvm.global.annotations can be ignored.
Expand Down

0 comments on commit 991ac2f

Please sign in to comment.