Closed dylanmckay closed 7 years ago
Exciting!
Thinking about this more, we probably don't really need this.
It's true that in general, we definitely need some sort of branch relaxation as many of our instructions can only point ~127 bytes ahead or behind of the current IP, but this is normally done in the linker.
The backend used to resolve a lot more fixups to addresses, but I've changed that previously so that we almost always emit relocations in these cases. This means that the linker can do the relaxation.
I've done this and it's in LLVM trunk.
Should we delete the branch or do you want to keep it for posterity?
Might as well delete to be honest, this patch only has a small amount of the actual code required/
Fixes #228.