Remove the methods for attaching metadata to instructions/retrieving metadata

from instructions.  Chandler doesn't like them being here.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2012-04-16 13:44:35 +00:00
parent e773e8c3e5
commit 0b36bb37d0

View File

@ -17,7 +17,6 @@
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Instructions.h"
#include "llvm/LLVMContext.h"
#include "llvm/Metadata.h"
#include "llvm/ADT/APInt.h"
@ -52,16 +51,6 @@ namespace llvm {
return MDNode::get(Context, Range);
}
/// GetRangeMetadata - Get range metadata attached to an instruction.
MDNode *GetRangeMetadata(Instruction *I) const {
return I->getMetadata(LLVMContext::MD_range);
}
/// SetRangeMetadata - Attach range metadata to an instruction.
void SetRangeMetadata(Instruction *I, MDNode *RangeTag) {
I->setMetadata(LLVMContext::MD_range, RangeTag);
}
//===------------------------------------------------------------------===//
// TBAA metadata.
@ -106,16 +95,6 @@ namespace llvm {
}
}
/// GetTBAAMetadata - Get tbaa metadata attached to an instruction.
MDNode *GetTBAAMetadata(Instruction *I) const {
return I->getMetadata(LLVMContext::MD_tbaa);
}
/// SetTBAAMetadata - Attach tbaa metadata to an instruction.
void SetTBAAMetadata(Instruction *I, MDNode *TBAATag) {
I->setMetadata(LLVMContext::MD_tbaa, TBAATag);
}
};
} // end namespace llvm