When elliptical curves get broken, Bitcoin is also broken. So we think this day is far off.
You can't undo the blockchain by breaking ECC. Everything is still provably written there and stored on computers across the globe, private wallet keys that will be vulnerable, not the history.
Hash functions are considered fairly immune from post-quantum cryptography. Applying Grovers algorithm means SHA-256 ends up with 128 bits of security.