[patch] move ExtWeakSymbols to AsmPrinter

The attached patch moves the ExtWeakSymbols to the AsmPrinter class
and the code that emits the ".weak" directives to
AsmPrinter::doFinalization.

This is just code factoring. No functionality changes.

Best Regards,
Rafael

llvm.patch (5.26 KB)

Looks good, one request though: if practical, it would be nice to switch this to be set<GlobalValue*> instead of set<std::string>.

-Chris

Looks good, one request though: if practical, it would be nice to switch
this to be set<GlobalValue*> instead of set<std::string>.

Attached

-Chris

Rafael

llvm.patch (7.47 KB)

OK to commit?

Rafael

Sorry for the delay, looks great, please apply!

-Chris