Change the signature of insertElementAt and rename addInputElementFront
authorRui Ueyama <ruiu@google.com>
Thu, 24 Jul 2014 00:08:22 +0000 (00:08 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 24 Jul 2014 00:08:22 +0000 (00:08 +0000)
commitabea8fa61d98c94a8b28e27e8885191346996a0f
tree56a3c138c7e0d04fa4e09b34bb38aa719f2fbcc4
parent33b44ab2b7f4e92ad5a2b879d0160214c0d10321
Change the signature of insertElementAt and rename addInputElementFront

insertElementAt(x, END) does the identical thing as addInputElement(x),
so the only reasonable use of insertElementAt is to call it with the
other possible argument, BEGIN. That means the second parameter of the
function is just redundant. This patch is to remove the second
parameter and rename the function accordingly.

llvm-svn: 213821
lld/include/lld/Core/InputGraph.h
lld/lib/Core/InputGraph.cpp
lld/lib/Driver/Driver.cpp