How is the underlined pronoun used in the subordinate clause?

That's the boy whom I saw at the swimming pool today.

A.
indirect object

B.
direct object

C.
subject

D.
object of a preposition