mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
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:
parent
e773e8c3e5
commit
0b36bb37d0
@ -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