mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Tidy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9650983b9a
commit
1ec7f5feb3
@ -330,10 +330,8 @@ void MDNode::replaceOperand(MDNodeOperand *Op, Value *To) {
|
|||||||
// NamedMDNode implementation.
|
// NamedMDNode implementation.
|
||||||
//
|
//
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
// SymbolTableListTraits specialization for MDSymbolTable.
|
// SymbolTableListTraits specialization for MDSymbolTable.
|
||||||
void ilist_traits<NamedMDNode>
|
void ilist_traits<NamedMDNode>::addNodeToList(NamedMDNode *N) {
|
||||||
::addNodeToList(NamedMDNode *N) {
|
|
||||||
assert(N->getParent() == 0 && "Value already in a container!!");
|
assert(N->getParent() == 0 && "Value already in a container!!");
|
||||||
Module *Owner = getListOwner();
|
Module *Owner = getListOwner();
|
||||||
N->setParent(Owner);
|
N->setParent(Owner);
|
||||||
@ -347,7 +345,6 @@ void ilist_traits<NamedMDNode>::removeNodeFromList(NamedMDNode *N) {
|
|||||||
MDSymbolTable &ST = Owner->getMDSymbolTable();
|
MDSymbolTable &ST = Owner->getMDSymbolTable();
|
||||||
ST.remove(N->getName());
|
ST.remove(N->getName());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static SmallVector<WeakVH, 4> &getNMDOps(void *Operands) {
|
static SmallVector<WeakVH, 4> &getNMDOps(void *Operands) {
|
||||||
return *(SmallVector<WeakVH, 4>*)Operands;
|
return *(SmallVector<WeakVH, 4>*)Operands;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user