This is an archive of the discontinued LLVM Phabricator instance.

[mips] [IAS] Refactor symbol-address loading code into a helper function. NFC.
ClosedPublic

Authored by tomatabacu on May 6 2015, 5:02 AM.

Diff Detail

Event Timeline

tomatabacu updated this revision to Diff 25964.May 18 2015, 7:05 AM

Moved this refactoring to the earliest possible point in the patch series.
Changed the arguments of loadSymbolAddress() from MCOperand's to more specific types.
Rebased.

dsanders accepted this revision.May 19 2015, 6:24 AM
dsanders edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 19 2015, 6:24 AM
tomatabacu updated this revision to Diff 27516.Jun 11 2015, 8:57 AM
tomatabacu edited edge metadata.

Rebased (for Sean Bruno's convenience).

Toma tells me he's going to untangle this patch from the patches it depends on. The problem is that a couple of those patches have uncovered badly broken MCExpr simplification which is blocking them.

tomatabacu updated this revision to Diff 27570.Jun 12 2015, 5:23 AM

Removed all dependencies on other patches, as they were unnecessary.

This version LGTM

lib/Target/Mips/AsmParser/MipsAsmParser.cpp
1956

Returning a bool looks useless at the moment but I'm aware that there are cases in your follow-on patches that will need it.

tomatabacu closed this revision.Jun 16 2015, 5:20 AM