Green’s Dictionary of Slang

whirligig n.

1. [late 18C–mid-19C] (UK Und.) the pillory.

2. [1910s+] an unspecified gadget.