IBM revenue misses on weakness in legacy infrastructure unit