diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-29 07:50:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-29 07:50:09 +0000 |
commit | 44f3d23b60a94f7211acf91e1e951360df71fdf8 (patch) | |
tree | cfece450861b1974b0862713f8d7b6ceb88bc93d | |
parent | 508b19a5a41a4b82be4ae71e6ea5c691bea99b96 (diff) |
the only call to this function (from clang) has been removed, zap it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92254 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Metadata.h | 4 | ||||
-rw-r--r-- | lib/VMCore/Metadata.cpp | 22 |
2 files changed, 0 insertions, 26 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index f45bdb50d8..b7833a6d66 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -224,10 +224,6 @@ public: /// isValidName - Return true if Name is a valid custom metadata handler name. static bool isValidName(StringRef Name); - /// copyMD - If metadata is attached with Instruction In1 then attach - /// the same metadata to In2. - void copyMD(Instruction *In1, Instruction *In2); - /// getMDKindNames - Populate client supplied SmallVector with the name for /// each custom metadata ID. ID #0 is not used, so it is filled in as empty. void getMDKindNames(SmallVectorImpl<StringRef> &) const; diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index eb352896e8..2698767665 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -275,10 +275,6 @@ public: /// removeAllMetadata - Remove all metadata attached to an instruction. void removeAllMetadata(Instruction *Inst); - - /// copyMD - If metadata is attached with Instruction In1 then attach - /// the same metadata to In2. - void copyMD(Instruction *In1, Instruction *In2); }; } @@ -387,18 +383,6 @@ void MetadataContextImpl::removeAllMetadata(Instruction *Inst) { } -/// copyMD - If metadata is attached with Instruction In1 then attach -/// the same metadata to In2. -void MetadataContextImpl::copyMD(Instruction *In1, Instruction *In2) { - assert(In1 && In2 && "Invalid instruction!"); - MDMapTy &In1Info = MetadataStore[In1]; - if (In1Info.empty()) - return; - - for (MDMapTy::iterator I = In1Info.begin(), E = In1Info.end(); I != E; ++I) - In2->setMetadata(I->first, I->second); -} - //===----------------------------------------------------------------------===// // MetadataContext implementation. // @@ -426,12 +410,6 @@ unsigned MetadataContext::getMDKindID(StringRef Name) const { return pImpl->getMDKindID(Name); } -/// copyMD - If metadata is attached with Instruction In1 then attach -/// the same metadata to In2. -void MetadataContext::copyMD(Instruction *In1, Instruction *In2) { - pImpl->copyMD(In1, In2); -} - /// getHandlerNames - Populate client supplied smallvector using custome /// metadata name and ID. void MetadataContext::getMDKindNames(SmallVectorImpl<StringRef> &N) const { |