Remove unused GlobalVariable::replaceUsesOfWithOnConstant. NFC.
authorPete Cooper <peter_cooper@apple.com>
Wed, 24 Jun 2015 00:05:07 +0000 (00:05 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 24 Jun 2015 00:05:07 +0000 (00:05 +0000)
commiteab3c6548c6d48d180e3fd470c0b716ecb5ad845
tree07c3ff1d37ea7377d7bb60a707e34f8f026eb584
parentcd5ba15e764080210f3ae95d2a20d7f9c90d1bfc
Remove unused GlobalVariable::replaceUsesOfWithOnConstant.  NFC.

The only caller of this method is Value::replaceAllUsesWith which
explicitly checks that we are not a GlobalValue.  So replace the
body with an unreachable to ensure that we never call it.

The unreachable itself is moved to GlobalValue not GlobalVariable
as that is the base class of all the globals we don't want to call
this method on.

Note, this patch is short lived as i'll soon refactor all callers
of this method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240486 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/GlobalValue.h
include/llvm/IR/GlobalVariable.h
lib/IR/Globals.cpp