Irony refers to a literary device in which what appears to be the case on the surface is radically different from what is actually the case. In this example, Swift's glasses are made of glass, which in theory is not a resistant material and would most likely make a very bad shield. However, the irony is that the glasses actually protect Swift's eyes effectively, despite their fragile nature.