mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
tidy up and delete a dead smallvector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e55b15fa47
commit
06ac32cc86
@ -22,10 +22,6 @@
|
|||||||
#include "llvm/Support/ValueHandle.h"
|
#include "llvm/Support/ValueHandle.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
// MetadataBase implementation.
|
|
||||||
//
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// MDString implementation.
|
// MDString implementation.
|
||||||
//
|
//
|
||||||
@ -130,6 +126,8 @@ MDNode *MDNode::get(LLVMContext &Context, Value*const* Vals, unsigned NumVals,
|
|||||||
void MDNode::Profile(FoldingSetNodeID &ID) const {
|
void MDNode::Profile(FoldingSetNodeID &ID) const {
|
||||||
for (unsigned i = 0, e = getNumElements(); i != e; ++i)
|
for (unsigned i = 0, e = getNumElements(); i != e; ++i)
|
||||||
ID.AddPointer(getElement(i));
|
ID.AddPointer(getElement(i));
|
||||||
|
// HASH TABLE COLLISIONS?
|
||||||
|
// DO NOT REINSERT AFTER AN OPERAND DROPS TO NULL!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -433,10 +431,8 @@ void MetadataContextImpl::ValueIsCloned(const Instruction *In1,
|
|||||||
MDStoreTy::iterator I = MetadataStore.find(In1);
|
MDStoreTy::iterator I = MetadataStore.find(In1);
|
||||||
assert(I != MetadataStore.end() && "Invalid custom metadata info!");
|
assert(I != MetadataStore.end() && "Invalid custom metadata info!");
|
||||||
|
|
||||||
// FIXME : Give all metadata handlers a chance to adjust.
|
// FIXME: Give all metadata handlers a chance to adjust.
|
||||||
|
|
||||||
MDMapTy &In1Info = I->second;
|
MDMapTy &In1Info = I->second;
|
||||||
MDMapTy In2Info;
|
|
||||||
for (MDMapTy::iterator I = In1Info.begin(), E = In1Info.end(); I != E; ++I)
|
for (MDMapTy::iterator I = In1Info.begin(), E = In1Info.end(); I != E; ++I)
|
||||||
addMD(I->first, I->second, In2);
|
addMD(I->first, I->second, In2);
|
||||||
}
|
}
|
||||||
@ -449,15 +445,14 @@ void MetadataContextImpl::ValueIsRAUWd(Value *V1, Value *V2) {
|
|||||||
if (!I1 || !I2)
|
if (!I1 || !I2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// FIXME : Give custom handlers a chance to override this.
|
// FIXME: Give custom handlers a chance to override this.
|
||||||
ValueIsCloned(I1, I2);
|
ValueIsCloned(I1, I2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// MetadataContext implementation.
|
// MetadataContext implementation.
|
||||||
//
|
//
|
||||||
MetadataContext::MetadataContext()
|
MetadataContext::MetadataContext() : pImpl(new MetadataContextImpl()) { }
|
||||||
: pImpl(new MetadataContextImpl()) { }
|
|
||||||
MetadataContext::~MetadataContext() { delete pImpl; }
|
MetadataContext::~MetadataContext() { delete pImpl; }
|
||||||
|
|
||||||
/// isValidName - Return true if Name is a valid custom metadata handler name.
|
/// isValidName - Return true if Name is a valid custom metadata handler name.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user