How is the underlined pronoun used in the subordinate clause?

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

A.
subject

B.
object of a preposition

C.
direct object

D.
indirect object