In THIS ANSWER and THIS ONE, I discuss some regularizations of the Dirac Delta.
Let $\delta_n$ be a regularization of the Dirac Delta such that for a suitable test function $f$
$$\langle f,\delta\rangle =\lim_{n\to \infty}\int_{-\infty}^\infty \delta_n(x)f(x)\,dx=f(0)$$
where $\delta_n(x)$ is an even function of $x$.
TAYLOR'S THEOREM
Since $f$ is smooth, Taylor's Theorem with the Peano form of the remainder guarantees that $f$ can be written $f(x)=f(0)+f'(0)x+h(x)x$ where $\lim_{x\to 0}h(x)=0$.
THE DISTRIBUTION $\displaystyle d(x)=\frac{\delta(x)}{x}$
Denoting the distribution $d(x)=\frac{\delta(x)}{x}$, which as user1952009 points out, is an abuse of notation, we have
$$\begin{align}
\langle d,f\rangle &=\lim_{n\to \infty}\text{PV}\left(\int_{-\infty}^\infty \frac{\delta_n(x)}{x}f(x)\,dx\right)\\\\
&=\lim_{n\to \infty}\text{PV}\left(\int_{-\infty}^\infty \delta_n(x)\left(\frac{f(0)}{x}+f'(0)+h(x)x\right)\,dx\right)\\\\
&=f'(0)
\end{align}$$
where $\text{PV}\int_{-\infty}^\infty f(x)\,dx=\lim_{\epsilon\to 0^+}\left(\int_{-\infty}^{-\epsilon}f(x)\,dx+\int_{\epsilon}^\infty f(x)\,dx\right)$ is the Cauchy Principal Value.
THE DISTRIBUTION $\displaystyle \delta'(x)$
In addition, we have by definition (SEE THIS ANSWER )
$$\langle f,\delta'\rangle =-f'(0)$$
PUTTING IT ALTOGETHER
Since for all test functions $f$,
$$\langle f,d\rangle=-\langle f,\delta'\rangle$$
then $\delta'(x)=-\frac{\delta(x)}{x}$.