mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Remove the methods for attaching metadata to instructions/retrieving metadata
from instructions. Chandler doesn't like them being here. llvm-svn: 154813
This commit is contained in:
parent
fbb6219d5b
commit
e0ea0f7eb6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user