mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1323,18 +1323,6 @@ void UndefValue::destroyConstant() {
|
||||
destroyConstantImpl();
|
||||
}
|
||||
|
||||
//---- MDString::get() implementation
|
||||
//
|
||||
|
||||
MDString::MDString(const char *begin, const char *end)
|
||||
: Constant(Type::MetadataTy, MDStringVal, 0, 0),
|
||||
StrBegin(begin), StrEnd(end) {}
|
||||
|
||||
void MDString::destroyConstant() {
|
||||
getType()->getContext().erase(this);
|
||||
destroyConstantImpl();
|
||||
}
|
||||
|
||||
//---- MDNode::get() implementation
|
||||
//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user