Parse for an MCExpr instead of an Identifier and use the symbol for relocations, not just the symbol's name.
This fixes errors when using local labels in .cpsetup (PR22518).
Paths
| Differential D7697
[mips] [IAS] Fix using .cpsetup with local labels (PR22518). ClosedPublic Authored by tomatabacu on Feb 17 2015, 3:48 AM.
Details Summary Parse for an MCExpr instead of an Identifier and use the symbol for relocations, not just the symbol's name. This fixes errors when using local labels in .cpsetup (PR22518).
Diff Detail Event Timelinetomatabacu retitled this revision from to [mips] [IAS] Fix using .cpsetup with local labels (PR22518).. tomatabacu updated this object. Comment Actions Keep in mind that I'm still looking for a way to use .text+offset for the relocation, instead of hanging on to the $tmp0 symbol. Comment Actions Functional commentary, not code. This does appear to allow freebsd to build farther and avoid failures related to its use of .cpsetup. dsanders edited edge metadata. Comment ActionsLGTM with a whitespace nit.
This revision is now accepted and ready to land.Feb 18 2015, 3:38 AM
Revision Contents
Diff 20076 lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
test/MC/Mips/cpsetup-bad.s
test/MC/Mips/cpsetup.s
|
Nit: Two blank lines