mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-17 13:30:41 +00:00
Do not emit prototypes for setjmp/longjmp, as they are handled specially
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13437 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0555ed8bff
commit
4589ed9510
@ -723,7 +723,8 @@ bool CWriter::doInitialization(Module &M) {
|
|||||||
Out << "\n/* Function Declarations */\n";
|
Out << "\n/* Function Declarations */\n";
|
||||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
||||||
// Don't print declarations for intrinsic functions.
|
// Don't print declarations for intrinsic functions.
|
||||||
if (!I->getIntrinsicID()) {
|
if (!I->getIntrinsicID() &&
|
||||||
|
I->getName() != "setjmp" && I->getName() != "longjmp") {
|
||||||
printFunctionSignature(I, true);
|
printFunctionSignature(I, true);
|
||||||
if (I->hasWeakLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
if (I->hasWeakLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
||||||
if (I->hasLinkOnceLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
if (I->hasLinkOnceLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
||||||
|
@ -723,7 +723,8 @@ bool CWriter::doInitialization(Module &M) {
|
|||||||
Out << "\n/* Function Declarations */\n";
|
Out << "\n/* Function Declarations */\n";
|
||||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
||||||
// Don't print declarations for intrinsic functions.
|
// Don't print declarations for intrinsic functions.
|
||||||
if (!I->getIntrinsicID()) {
|
if (!I->getIntrinsicID() &&
|
||||||
|
I->getName() != "setjmp" && I->getName() != "longjmp") {
|
||||||
printFunctionSignature(I, true);
|
printFunctionSignature(I, true);
|
||||||
if (I->hasWeakLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
if (I->hasWeakLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
||||||
if (I->hasLinkOnceLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
if (I->hasLinkOnceLinkage()) Out << " __ATTRIBUTE_WEAK__";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user